This commit is contained in:
wangcongtao
2021-02-23 16:24:56 +08:00
parent 4de208026a
commit 3f6400b0bc
3 changed files with 14 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ android {
// 是否基于地图
buildConfigField 'boolean', 'IS_MAP_BASED', 'true'
// 是否加载引导模块
buildConfigField 'boolean', 'IS_NEED_LOAD_GUIDE_MODULE', 'true'
buildConfigField 'boolean', 'IS_NEED_LOAD_GUIDE_MODULE', 'false'
// 分享时是否隐藏 adas
buildConfigField 'boolean', 'IS_NEED_HIDE_ADAS_WHEN_SHARE', 'false'
// 是否需要实时上报坐标
@@ -151,7 +151,7 @@ android {
// 是否基于地图
buildConfigField 'boolean', 'IS_MAP_BASED', 'true'
// 是否加载引导模块
buildConfigField 'boolean', 'IS_NEED_LOAD_GUIDE_MODULE', 'true'
buildConfigField 'boolean', 'IS_NEED_LOAD_GUIDE_MODULE', 'false'
// 分享时是否隐藏 adas
buildConfigField 'boolean', 'IS_NEED_HIDE_ADAS_WHEN_SHARE', 'false'
// 是否需要实时上报坐标

View File

@@ -1,5 +1,7 @@
package com.mogo.commons.debug;
import android.text.TextUtils;
/**
* @author congtaowang
* @since 2019-12-23
@@ -413,4 +415,8 @@ public class DebugConfig {
public static void setNotSmooth( boolean sIsNotSmooth ) {
DebugConfig.sIsNotSmooth = sIsNotSmooth;
}
public static boolean isOCHModule(){
return sProductFlavor != null && sProductFlavor.startsWith( "foch" );
}
}

View File

@@ -1,6 +1,7 @@
package com.mogo.map.impl.custom;
import com.mogo.commons.debug.DebugConfig;
import com.zhidaoauto.map.sdk.open.location.MogoLocation;
import java.util.ArrayList;
@@ -52,6 +53,11 @@ class MapStyleController {
return;
}
// 网约车不自动切换vr、2d模式
if ( DebugConfig.isOCHModule() ) {
return;
}
boolean isInVrMode = false;
for ( VrAreaFilter vrAreaFilter : mVrAreaFilters ) {
if ( vrAreaFilter == null ) {