[6.3.0][Opt]taxi乘客屏默认开启天气效果

This commit is contained in:
chenfufeng
2024-03-27 18:32:53 +08:00
parent e27b271e60
commit 1d06e1a18c
3 changed files with 2 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
android:id="@+id/mapBizView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:isWeatherEnable="false"
app:isWeatherEnable="true"
app:default_perspective="MAP_STYLE_VR_SKY_BOX"
app:styleMode="MAP_STYLE_DAY_VR_TAXI" />

View File

@@ -33,7 +33,7 @@
android:id="@+id/mapBizView"
app:styleMode="MAP_STYLE_DAY_VR_TAXI"
app:default_perspective="MAP_STYLE_VR_SKY_BOX"
app:isWeatherEnable="false"
app:isWeatherEnable="true"
android:layout_width="match_parent"
android:layout_height="match_parent" />

View File

@@ -763,10 +763,8 @@ internal class SOPSettingView @JvmOverloads constructor(
}
it.layoutParams = params
it.setOnCheckedChangeListener { _, isChecked ->
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(isChecked)
CallerTelematicManager.sendMsgToAllClients(TelematicConstant.WEATHER_SWITCH_STATUS, (if (isChecked) "1" else "0").toByteArray())
}
CallerMapUIServiceManager.getMapUIController()?.setWeatherEnable(true)
}
}