一个崩溃问题

This commit is contained in:
YuKongA
2022-03-12 18:31:31 +08:00
parent cc4be4ccaf
commit 4f7486f39e

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()
}