bug fix: 修改自导航过程中back键后不退出导航的问题

This commit is contained in:
tongchenfei
2020-08-13 17:39:38 +08:00
parent d37664264e
commit c83038ea34

View File

@@ -57,7 +57,10 @@ public class MainIndependentActivity extends MainActivity {
if ( CustomNaviInterrupter.getInstance().interrupt() ) {
return false;
}
mServiceApis.getMapServiceApi().getNavi( this ).stopNavi();
if (mServiceApis.getMapServiceApi().getNavi(this).isNaviing()) {
mServiceApis.getMapServiceApi().getNavi( this ).stopNavi();
return true;
}
return false;
}
}