bugfix: D80XCD-1441

This commit is contained in:
wangcongtao
2020-06-18 11:45:12 +08:00
parent 7c58c36b16
commit 35390d39d2

View File

@@ -333,6 +333,8 @@ public class MogoServices implements IMogoMapListener,
if ( DebugConfig.isLaunchLocationService() ) {
initLocationServiceProcess( context );
}
requestAutoNaviLastStatus();
}
private void initLocationServiceProcess( Context context ) {
@@ -701,6 +703,12 @@ public class MogoServices implements IMogoMapListener,
restartAutoRefreshAtTime( 2_000L );
}
mIsMainPageFirstResume = false;
try {
// 请求地图最后一次保存的状态
requestAutoNaviLastStatus();
} catch ( Exception e ) {
e.printStackTrace();
}
} else {
unregisterInternalUnWakeupWords();
stopAutoRefreshStrategy();
@@ -713,6 +721,13 @@ public class MogoServices implements IMogoMapListener,
}
}
private void requestAutoNaviLastStatus(){
Intent intent = new Intent();
intent.setAction("AUTONAVI_STANDARD_BROADCAST_RECV");
intent.putExtra("KEY_TYPE", 10061);
mContext.sendBroadcast(intent);
}
private void notifySeekHelpingStatusChanged( boolean seekHelpingStatus ) {
Intent intent = new Intent( "com.mogo.launcher.adas.app" );
try {