在导航设置中新增切换地图实现按钮
This commit is contained in:
@@ -19,7 +19,7 @@ project.dependencies {
|
||||
d8xxImplementation project(':foudations:mogo-base-services-apk')
|
||||
em4Implementation project(':foudations:mogo-base-services-apk')
|
||||
e8xxImplementation project(':foudations:mogo-base-services-apk')
|
||||
f8xxImplementation project(':foudations:mogo-base-services-sdk')
|
||||
f8xxImplementation project(':foudations:mogo-base-services-apk')
|
||||
em3Implementation project(':foudations:mogo-base-services-apk')
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ import com.mogo.module.navi.manager.AddressManager
|
||||
import com.mogo.module.navi.manager.SettingManager
|
||||
import com.mogo.module.navi.manager.VolumeManager
|
||||
import com.mogo.module.navi.ui.base.BaseFragment
|
||||
import com.mogo.utils.TipToast
|
||||
import com.mogo.utils.storage.SharedPrefsMgr
|
||||
import kotlinx.android.synthetic.main.fragment_navi_setting.*
|
||||
import org.greenrobot.eventbus.EventBus
|
||||
import org.greenrobot.eventbus.Subscribe
|
||||
@@ -227,6 +229,11 @@ class NaviSettingFragment : BaseFragment(), OnCheckedChangeListener {
|
||||
SearchApisHolder.getGpsSimulatorManager().close()
|
||||
}
|
||||
}
|
||||
tb_custom_map.isChecked = DebugConfig.isUseCustomMap()
|
||||
tb_custom_map.setOnCheckedChangeListener{ _, isChecked ->
|
||||
TipToast.shortTip("设置完成,下次启动生效")
|
||||
SharedPrefsMgr.getInstance(context!!).putBoolean("useCustomMap", isChecked)
|
||||
}
|
||||
tb_navi.isChecked = SettingManager.isMonitor()
|
||||
tb_gps.isChecked = SettingManager.isGpsSimulator()
|
||||
|
||||
|
||||
@@ -451,6 +451,18 @@
|
||||
android:textSize="@dimen/module_search_txt_setting_width"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tb_custom_map"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="50dp"
|
||||
android:checked="false"
|
||||
android:textColor="@color/white_80"
|
||||
android:textOff="启用自研地图"
|
||||
android:textOn="启用高德地图"
|
||||
android:textSize="@dimen/module_search_txt_setting_width"
|
||||
app:layout_constraintLeft_toLeftOf="parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
@@ -140,12 +140,12 @@ public class V2XModuleProvider implements
|
||||
intentFilter.addAction(V2XConst.BROADCAST_SCENE_HANDLER_ACTION);
|
||||
localBroadcastManager.registerReceiver(localReceiver, intentFilter);
|
||||
|
||||
if (BuildConfig.DEBUG) {
|
||||
// TODO 这是测试页面
|
||||
V2XServiceManager
|
||||
.getIMogoWindowManager()
|
||||
.addView(new V2XTestConsoleWindow(context), 0, 0, false);
|
||||
}
|
||||
// if (BuildConfig.DEBUG) {
|
||||
// // TODO 这是测试页面
|
||||
// V2XServiceManager
|
||||
// .getIMogoWindowManager()
|
||||
// .addView(new V2XTestConsoleWindow(context), 0, 0, false);
|
||||
// }
|
||||
}
|
||||
|
||||
private void initVoice(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user