Skip to content

Commit

Permalink
Bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
KyuubiRan committed Nov 19, 2020
1 parent 58ff793 commit 26fbdd0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "me.kyuubiran.qqcleaner"
minSdkVersion 21
targetSdkVersion 30
versionCode 14
versionName "1.2.2"
versionCode 15
versionName "1.2.3"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import me.kyuubiran.qqcleaner.utils.ConfigManager.setConfig
import java.lang.Exception
import java.text.SimpleDateFormat


class SettingsActivity : AppCompatTransferActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
setTheme(R.style.AppTheme_Ftb)
Expand Down Expand Up @@ -69,6 +68,7 @@ class SettingsActivity : AppCompatTransferActivity() {
setHistorySummary()
toggleCleanedTimeShow()
setClickable()
setConfig(CFG_CUSTOMER_CLEAN_LIST, customerCleanList.values)
}

private fun setClickable() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ object ConfigManager {
checkConfigIsExists()
checkConfigKeyHasValue(CFG_CURRENT_CLEANED_TIME, 0)
checkConfigKeyHasValue(CFG_TOTAL_CLEANED_SIZE, 0)
checkConfigKeyHasValue(CFG_CUSTOMER_CLEAN_LIST, ArrayList<String>())
}

private fun checkConfigKeyHasValue(key: String, defValue: Any): Boolean {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<string name="auto_clean_switch_title">自动瘦身</string>

<string name="auto_clean_switch_hint">自动瘦身将会重启QQ后执行\n两次清理的时间间隔不小于24小时</string>
<string name="auto_clean_switch_hint">两次清理的间隔为24小时</string>
<string name="auto_clean_switch_key">启用自动瘦身</string>
<string name="auto_clean_time">上次自动瘦身时间</string>
<string name="auto_clean_mode">瘦身方案</string>
Expand Down

0 comments on commit 26fbdd0

Please sign in to comment.