opt
This commit is contained in:
@@ -201,17 +201,18 @@ class SnapshotSetDataDrawer extends BaseDrawer {
|
||||
|
||||
private View inflateView( CloudRoadData data, boolean machineVision, double curSpeed ) {
|
||||
View rootView = LayoutInflater.from( AbsMogoApplication.getApp() ).inflate( R.layout.module_commons_layout_car, null );
|
||||
SafeType safeType = getSafeType( data.getDistance(), data.getSpeed(), curSpeed );
|
||||
TextView tv = rootView.findViewById( R.id.module_commons_marker_car_speed );
|
||||
// 机器视觉展示速度,用户视觉展示安全类型
|
||||
tv.setText( machineVision ? String.valueOf( data.getSpeed() ) : safeType.getMsg() );
|
||||
// SafeType safeType = getSafeType( data.getDistance(), data.getSpeed(), curSpeed );
|
||||
// TextView tv = rootView.findViewById( R.id.module_commons_marker_car_speed );
|
||||
// // 机器视觉展示速度,用户视觉展示安全类型
|
||||
// tv.setText( machineVision ? String.valueOf( data.getSpeed() ) : safeType.getMsg() );
|
||||
ImageView iv = rootView.findViewById( R.id.module_commons_marker_car_model );
|
||||
iv.setImageResource( MarkerResourceManager.getMarkerDrawableResId(
|
||||
machineVision ? VisionMode.Machine : VisionMode.User,
|
||||
AdasRecognizedType.valueFrom( data.getType() ),
|
||||
getCarModelType(),
|
||||
safeType
|
||||
) );
|
||||
// iv.setImageResource( MarkerResourceManager.getMarkerDrawableResId(
|
||||
// machineVision ? VisionMode.Machine : VisionMode.User,
|
||||
// AdasRecognizedType.valueFrom( data.getType() ),
|
||||
// getCarModelType(),
|
||||
// safeType
|
||||
// ) );
|
||||
iv.setImageResource( R.drawable.icon_map_marker_car_gray );
|
||||
return rootView;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user