Przeglądaj źródła

启动的默认type类型提前判断和保存waterFlow的twoFingerType的值

onecold 7 miesięcy temu
rodzic
commit
609f5ab81b

+ 1 - 1
entry/src/main/ets/pages/NewIndex.ets

@@ -262,7 +262,7 @@ struct NewIndex {
     this.isShowPrecious = PreferencesUtil.getBooleanSync('isShowPrecious', false)
     this.isShowPrecious = PreferencesUtil.getBooleanSync('isShowPrecious', false)
     ReqPermissionUtil.reqPermissionsFromUser(ReqPermissionUtil.permissions, this.context);
     ReqPermissionUtil.reqPermissionsFromUser(ReqPermissionUtil.permissions, this.context);
     this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, false)
     this.isShowTitleBar = PreferencesUtil.getBooleanSync(SettingPage.IS_SHOW_TITLTBAR, false)
-
+    this.initDefalutType()
     Utility.enableFullScreen()
     Utility.enableFullScreen()
     this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
     this.topRectHeight = px2vp(AppUtil.getStatusBarHeight());
     Utility.getAppName(getContext(this)).then((appName: string) => {
     Utility.getAppName(getContext(this)).then((appName: string) => {

+ 2 - 0
entry/src/main/ets/view/LocalMusic.ets

@@ -5263,6 +5263,8 @@ export struct LocalMusic {
                     this.twoFingerType =1
                     this.twoFingerType =1
                     this.isGridMusic = false
                     this.isGridMusic = false
                   }
                   }
+                  PreferencesUtil.put(SettingPage.TWO_FINGER_TYPE, this.twoFingerType)
+                  PreferencesUtil.put(SettingPage.IS_GRID_MUSIC, this.isGridMusic)
                   return;
                   return;
                 }
                 }