根据配置隐藏“全览”“正北”“退出导航”三个按钮

This commit is contained in:
tongchenfei
2020-06-08 14:12:15 +08:00
parent 520a981796
commit 699fc13f94
2 changed files with 20 additions and 5 deletions

View File

@@ -36,10 +36,14 @@ class CustomNaviInterrupter implements Interrupter {
sInstance = null;
}
/**
* 判断是否用自己的导航
* @return true-用高德公版车机版地图 false-用Launcher自己的导航
*/
@Override
public boolean interrupt() {
if ( AppUtils.isAppInstalled( AbsMogoApplication.getApp(), "com.autonavi.amapauto" )
|| DebugConfig.isUseCustomNavi() ) {
|| !DebugConfig.isUseCustomNavi() ) {
Logger.d( TAG, "do not use custom map function." );
return true;
}