opt
This commit is contained in:
@@ -743,13 +743,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
}
|
||||
int status = intent.getIntExtra( MogoReceiver.PARAM_ADAS_STATUS, 0 );
|
||||
mStatusManager.setADASUIShow( ServiceConst.TYPE, status == 1 );
|
||||
if ( status != 1 ) { // adas 关闭
|
||||
mUiController.setLockZoom( ServiceConst.DEFAULT_LOCK_CAR_ZOOM_LEVEL );
|
||||
// 延时两秒执行是为了让其它事物完成
|
||||
UiThreadHandler.postDelayed( () -> {
|
||||
mUiController.showMyLocation( true );
|
||||
}, 2_000L );
|
||||
}
|
||||
} else if ( Intent.ACTION_POWER_CONNECTED.equals( command ) ) {
|
||||
mStatusManager.setAccStatus( ServiceConst.TYPE, true );
|
||||
} else if ( Intent.ACTION_POWER_DISCONNECTED.equals( command ) ) {
|
||||
|
||||
Reference in New Issue
Block a user