mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-04 14:02:45 +01:00
android: Remove redundant option from slider dialog
You can already reset any setting by long pressing the settings item.
This commit is contained in:
parent
798a439eb1
commit
64ea5522d3
1 changed files with 0 additions and 4 deletions
|
@ -232,10 +232,6 @@ class SettingsAdapter(
|
||||||
.setView(sliderBinding.root)
|
.setView(sliderBinding.root)
|
||||||
.setPositiveButton(android.R.string.ok, this)
|
.setPositiveButton(android.R.string.ok, this)
|
||||||
.setNegativeButton(android.R.string.cancel, defaultCancelListener)
|
.setNegativeButton(android.R.string.cancel, defaultCancelListener)
|
||||||
.setNeutralButton(R.string.slider_default) { dialog: DialogInterface, which: Int ->
|
|
||||||
sliderBinding.slider.value = item.defaultValue!!.toFloat()
|
|
||||||
onClick(dialog, which)
|
|
||||||
}
|
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue