diff --git a/entry/src/main/ets/Utils/SettingsDBHelper.ets b/entry/src/main/ets/Utils/SettingsDBHelper.ets index 9c20ac4..d18778d 100644 --- a/entry/src/main/ets/Utils/SettingsDBHelper.ets +++ b/entry/src/main/ets/Utils/SettingsDBHelper.ets @@ -41,8 +41,7 @@ const DefalutKVGlobal = { "settings.audio.media.default": "5", "settings.audio.voicecall.default": "5", "settings.display.navigationbar_status.default": "1", - "cellular_data_enable.default": "1", - "settings.display.auto_screen_brightness.default": "1" + "cellular_data_enable.default": "1" }; const TIME_FORMAT = { @@ -165,9 +164,6 @@ class SettingsDBHelper { await this.loadSettings(this.rdbStore_, SettingsKey.CELLULAR_DATA_ENABLE, defaultKV[DefaultKey.CELLULAR_DATA_ENABLE_DEFAULT]); - await this.loadSettings(this.rdbStore_, - SettingsKey.SETTINGS_DISPLAY_AUTO_SCREEN_BRIGHTNESS, defaultKV[DefaultKey.SETTINGS_DISPLAY_AUTO_SCREEN_BRIGHTNESS_DEFAULT]); - Log.I("loadDefaultSettings end"); return; } diff --git a/entry/src/main/ets/Utils/SettingsDataConfig.ets b/entry/src/main/ets/Utils/SettingsDataConfig.ets index aa56b46..e907604 100644 --- a/entry/src/main/ets/Utils/SettingsDataConfig.ets +++ b/entry/src/main/ets/Utils/SettingsDataConfig.ets @@ -22,8 +22,7 @@ enum DefaultKey { SETTINGS_AUDIO_VOICE_CALL_DEFAULT = "settings.audio.voicecall.default", SETTINGS_GENERAL_DEVICE_NAME_DEFAULT = "settings.general.device_name.default", SETTINGS_DISPALY_NAVBAR_STATUS_DEFAULT = "settings.display.navigationbar_status.default", - CELLULAR_DATA_ENABLE_DEFAULT = "cellular_data_enable.default", - SETTINGS_DISPLAY_AUTO_SCREEN_BRIGHTNESS_DEFAULT = "settings.display.auto_screen_brightness.default" + CELLULAR_DATA_ENABLE_DEFAULT = "cellular_data_enable.default" }; enum SettingsKey { @@ -34,8 +33,7 @@ enum SettingsKey { SETTINGS_AUDIO_VOICE_CALL = "settings.audio.voicecall", SETTINGS_GENERAL_DEVICE_NAME = "settings.general.device_name", SETTINGS_DISPALY_NAVBAR_STATUS = "settings.display.navigationbar_status", - CELLULAR_DATA_ENABLE = "cellular_data_enable", - SETTINGS_DISPLAY_AUTO_SCREEN_BRIGHTNESS = "settings.display.auto_screen_brightness" + CELLULAR_DATA_ENABLE = "cellular_data_enable" }; const SettingsDataConfig = { diff --git a/entry/src/main/resources/rawfile/default_settings.json b/entry/src/main/resources/rawfile/default_settings.json index b25bc20..b081ec4 100644 --- a/entry/src/main/resources/rawfile/default_settings.json +++ b/entry/src/main/resources/rawfile/default_settings.json @@ -27,10 +27,6 @@ { "name": "cellular_data_enable.default", "value": "1" - }, - { - "name": "settings.display.auto_screen_brightness.default", - "value": "1" } ] } \ No newline at end of file