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

This commit is contained in:
tongchenfei
2020-08-13 17:39:38 +08:00
committed by wangcongtao
parent cb38370db9
commit 963c965e55

View File

@@ -64,7 +64,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;
}
}