mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 19:31:17 +08:00
修复大移动类型左右边距范围异常
This commit is contained in:
@@ -823,7 +823,7 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
) {
|
) {
|
||||||
MIUIDialog(activity).apply {
|
MIUIDialog(activity).apply {
|
||||||
setTitle(R.string.big_mobile_type_icon_left_and_right_margins)
|
setTitle(R.string.big_mobile_type_icon_left_and_right_margins)
|
||||||
setMessage("${activity.getString(R.string.range)} -30~30")
|
setMessage("${activity.getString(R.string.range)} 0~30")
|
||||||
setEditText(
|
setEditText(
|
||||||
"",
|
"",
|
||||||
"${activity.getString(R.string.def)}0, ${activity.getString(R.string.current)}${
|
"${activity.getString(R.string.def)}0, ${activity.getString(R.string.current)}${
|
||||||
@@ -840,7 +840,7 @@ class SettingsActivity : MIUIActivity() {
|
|||||||
if (getEditText().isNotEmpty()) {
|
if (getEditText().isNotEmpty()) {
|
||||||
try {
|
try {
|
||||||
val value = getEditText().toInt()
|
val value = getEditText().toInt()
|
||||||
if (value in (-30..30)) {
|
if (value in (0..30)) {
|
||||||
OwnSP.ownSP.edit().run {
|
OwnSP.ownSP.edit().run {
|
||||||
putInt(
|
putInt(
|
||||||
"big_mobile_type_icon_left_and_right_margins",
|
"big_mobile_type_icon_left_and_right_margins",
|
||||||
|
|||||||
Reference in New Issue
Block a user