优化模块依赖
This commit is contained in:
@@ -117,7 +117,9 @@ public class MapPresenter extends Presenter< MapView > implements
|
||||
AIAssist.getInstance( getContext() ).speakTTSVoice( "已为您继续导航" );
|
||||
UiThreadHandler.removeCallbacks( mLockCarRunnable );
|
||||
} else {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
if ( mLauncher != null ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
}
|
||||
UiThreadHandler.postDelayed( () -> {
|
||||
try {
|
||||
mStatusManager.setDisplayOverview( TAG, false );
|
||||
@@ -136,7 +138,9 @@ public class MapPresenter extends Presenter< MapView > implements
|
||||
if ( CustomNaviInterrupter.getInstance().interrupt() ) {
|
||||
return;
|
||||
}
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
if ( mLauncher != null ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
}
|
||||
if ( !mMogoMapService.getNavi( getContext() ).isNaviing() && !mStatusManager.isSearchUIShow() ) {
|
||||
mSearchManager.showSearch();
|
||||
}
|
||||
@@ -148,7 +152,9 @@ public class MapPresenter extends Presenter< MapView > implements
|
||||
if ( CustomNaviInterrupter.getInstance().interrupt() ) {
|
||||
return;
|
||||
}
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
if ( mLauncher != null ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
}
|
||||
mMogoSearchManager.calculatePath( new MogoLatLng( lat, lon ) );
|
||||
}
|
||||
|
||||
@@ -158,7 +164,9 @@ public class MapPresenter extends Presenter< MapView > implements
|
||||
// 导航过程中语音指令退出导航,会出现 activity 不走 onResume 的情况
|
||||
UiThreadHandler.postDelayed( () -> {
|
||||
if ( AppUtils.isAppForeground( getContext() ) && !hasOthersActivity() && !mStatusManager.isMainPageOnResume() ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
if ( mLauncher != null ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
}
|
||||
}
|
||||
}, 500L );
|
||||
return;
|
||||
@@ -203,7 +211,9 @@ public class MapPresenter extends Presenter< MapView > implements
|
||||
mView.getUIController().displayOverview( mDisplayOverviewBounds );
|
||||
AIAssist.getInstance( getContext() ).speakTTSVoice( "展示全程路线" );
|
||||
} else {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
if ( mLauncher != null ) {
|
||||
mLauncher.backToLauncher( getContext() );
|
||||
}
|
||||
UiThreadHandler.postDelayed( () -> {
|
||||
mStatusManager.setUserInteractionStatus( TAG, true, false );
|
||||
mStatusManager.setDisplayOverview( TAG, true );
|
||||
|
||||
Reference in New Issue
Block a user