Merge remote-tracking branch 'origin/main'

This commit is contained in:
乌堆小透明
2022-03-12 20:31:44 +08:00
2 changed files with 8 additions and 3 deletions

View File

@@ -445,9 +445,11 @@ class SettingsActivity : MIUIActivity() {
dismiss()
}
setRButton(textId = R.string.Done) {
OwnSP.ownSP.edit().run {
putFloat("max_wallpaper_scale", getEditText().toFloat())
apply()
if (getEditText() != "") {
OwnSP.ownSP.edit().run {
putFloat("max_wallpaper_scale", getEditText().toFloat())
apply()
}
}
dismiss()
}