Skip to content

Commit

Permalink
fix(Window scale factor): Input type
Browse files Browse the repository at this point in the history
  • Loading branch information
axel358 committed Feb 8, 2024
1 parent 25ce383 commit 3b02aa7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ class AdvancedPreferences : PreferenceFragmentCompat() {
}
})

val windowScale: EditTextPreference? = findPreference("scale_factor")
windowScale?.setOnBindEditTextListener { editText ->
editText.inputType = InputType.TYPE_CLASS_NUMBER or InputType.TYPE_NUMBER_FLAG_DECIMAL
editText.imeOptions = EditorInfo.IME_ACTION_GO
}

val iconPadding: EditTextPreference? = findPreference("icon_padding")
iconPadding?.setOnBindEditTextListener { editText ->
editText.inputType = InputType.TYPE_CLASS_NUMBER
Expand Down

0 comments on commit 3b02aa7

Please sign in to comment.