From db731afb4688072bf2d48bb6fb5b8f9da5abe241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 6 Jul 2023 16:28:07 +0200 Subject: [PATCH] Use uniform steps for larger and smaller keyboard heights --- .../keyboard/activities/SettingsActivity.kt | 5 +++-- .../com/simplemobiletools/keyboard/helpers/Constants.kt | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/activities/SettingsActivity.kt index 27aa856..5b9a41a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/activities/SettingsActivity.kt @@ -131,12 +131,13 @@ class SettingsActivity : SimpleActivity() { settings_keyboard_height_multiplier.text = getKeyboardHeightPercentageText(config.keyboardHeightPercentage) settings_keyboard_height_multiplier_holder.setOnClickListener { val items = arrayListOf( - RadioItem(KEYBOARD_HEIGHT_75_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_75_PERCENT)), + RadioItem(KEYBOARD_HEIGHT_70_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_70_PERCENT)), + RadioItem(KEYBOARD_HEIGHT_80_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_80_PERCENT)), RadioItem(KEYBOARD_HEIGHT_90_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_90_PERCENT)), RadioItem(KEYBOARD_HEIGHT_100_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_100_PERCENT)), RadioItem(KEYBOARD_HEIGHT_120_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_120_PERCENT)), RadioItem(KEYBOARD_HEIGHT_140_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_140_PERCENT)), - RadioItem(KEYBOARD_HEIGHT_175_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_175_PERCENT)), + RadioItem(KEYBOARD_HEIGHT_160_PERCENT, getKeyboardHeightPercentageText(KEYBOARD_HEIGHT_160_PERCENT)), ) RadioGroupDialog(this@SettingsActivity, items, config.keyboardHeightPercentage) { diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt index 31bc306..b8a26cb 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt @@ -46,12 +46,13 @@ const val LANGUAGE_FRENCH_BEPO = 17 const val LANGUAGE_VIETNAMESE_TELEX = 18 // keyboard height percentage options -const val KEYBOARD_HEIGHT_75_PERCENT = 75 +const val KEYBOARD_HEIGHT_70_PERCENT = 70 +const val KEYBOARD_HEIGHT_80_PERCENT = 80 const val KEYBOARD_HEIGHT_90_PERCENT = 90 const val KEYBOARD_HEIGHT_100_PERCENT = 100 const val KEYBOARD_HEIGHT_120_PERCENT = 120 const val KEYBOARD_HEIGHT_140_PERCENT = 140 -const val KEYBOARD_HEIGHT_175_PERCENT = 175 +const val KEYBOARD_HEIGHT_160_PERCENT = 160 const val EMOJI_SPEC_FILE_PATH = "media/emoji_spec.txt" const val LANGUAGE_VN_TELEX = "language/extension.json"