feat:修复当选择跟随系统是简体中文时不显示微信公众号推送

This commit is contained in:
liyi 2025-03-11 15:26:28 +08:00
parent f8eb6ea977
commit 97a36b5840
2 changed files with 5 additions and 1 deletions

View File

@ -215,7 +215,7 @@ class _MineSetPageState extends State<MineSetPage>
child: Obx(_isPushNotificationSwitch))),
// if (F.appFlavor == Flavor.sky)
Visibility(
visible: state.currentLanguageName == '简体中文'.tr,
visible: state.currentLanguageCode == 'zh_CN',
child: CommonItem(
leftTitel: '微信公众号推送'.tr,
rightTitle: '',

View File

@ -35,6 +35,10 @@ class MineSetState {
.lanTitle;
}
String get currentLanguageCode {
return currentLanguage.value;
}
RxBool isAmazonAlexa = false.obs; //Alexa
RxBool isGoogleHome = false.obs; //Home
Rx<AmazonAlexa> amazonAlexaData = AmazonAlexa().obs;