优化模块依赖
This commit is contained in:
@@ -278,7 +278,9 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
|
||||
if ( mCoverUpLayout.getVisibility() != View.VISIBLE ) {
|
||||
mServiceApis.getAdasControllerApi().showADAS();
|
||||
}
|
||||
mServiceApis.getLauncherApi().setFloatButtonVisible( false );
|
||||
if ( mServiceApis.getLauncherApi() != null ) {
|
||||
mServiceApis.getLauncherApi().setFloatButtonVisible( false );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -290,7 +292,9 @@ public class MainActivity extends MvpActivity< MainView, MainPresenter > impleme
|
||||
if ( shouldCloseADASPanelWhenPause() ) {
|
||||
mServiceApis.getAdasControllerApi().closeADAS();
|
||||
}
|
||||
mServiceApis.getLauncherApi().setFloatButtonVisible( true );
|
||||
if ( mServiceApis.getLauncherApi() != null ) {
|
||||
mServiceApis.getLauncherApi().setFloatButtonVisible( true );
|
||||
}
|
||||
}
|
||||
|
||||
protected boolean shouldCloseADASPanelWhenPause() {
|
||||
|
||||
@@ -112,7 +112,9 @@ public class SchemeIntent implements IMogoStatusChangedListener {
|
||||
delay = 5_000L;
|
||||
}
|
||||
mNextIntent = new IntentWrapper(intent, delay);
|
||||
mApis.getLauncherApi().backToLauncher(mContext);
|
||||
if ( mApis.getLauncherApi() != null ) {
|
||||
mApis.getLauncherApi().backToLauncher(mContext);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user