From 7bb026b2786f1ccc70016f8df6a478d3a3257194 Mon Sep 17 00:00:00 2001 From: ismailnurudeen Date: Thu, 20 Apr 2023 11:53:56 +0100 Subject: [PATCH] refactor: renamed isNumRow to isNumbersRow --- .../com/simplemobiletools/keyboard/helpers/MyKeyboard.kt | 8 ++++---- app/src/main/res/values/attrs.xml | 2 +- app/src/main/res/xml/keys_letters_bengali.xml | 2 +- app/src/main/res/xml/keys_letters_bulgarian.xml | 2 +- app/src/main/res/xml/keys_letters_english_dvorak.xml | 2 +- app/src/main/res/xml/keys_letters_english_qwerty.xml | 2 +- app/src/main/res/xml/keys_letters_english_qwertz.xml | 2 +- app/src/main/res/xml/keys_letters_french.xml | 2 +- app/src/main/res/xml/keys_letters_german.xml | 2 +- app/src/main/res/xml/keys_letters_greek.xml | 2 +- app/src/main/res/xml/keys_letters_lithuanian.xml | 2 +- app/src/main/res/xml/keys_letters_romanian.xml | 2 +- app/src/main/res/xml/keys_letters_russian.xml | 2 +- app/src/main/res/xml/keys_letters_slovenian.xml | 2 +- app/src/main/res/xml/keys_letters_spanish_qwerty.xml | 2 +- app/src/main/res/xml/keys_letters_turkish_q.xml | 2 +- 16 files changed, 19 insertions(+), 19 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/MyKeyboard.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/MyKeyboard.kt index 08254f5..f07ce01 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/MyKeyboard.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/MyKeyboard.kt @@ -97,7 +97,7 @@ class MyKeyboard { var parent: MyKeyboard - var isNumRow: Boolean = false + var isNumbersRow: Boolean = false constructor(parent: MyKeyboard) { this.parent = parent @@ -109,7 +109,7 @@ class MyKeyboard { defaultWidth = getDimensionOrFraction(a, R.styleable.MyKeyboard_keyWidth, parent.mDisplayWidth, parent.mDefaultWidth) defaultHeight = (res.getDimension(R.dimen.key_height) * this.parent.mKeyboardHeightMultiplier).roundToInt() defaultHorizontalGap = getDimensionOrFraction(a, R.styleable.MyKeyboard_horizontalGap, parent.mDisplayWidth, parent.mDefaultHorizontalGap) - isNumRow = a.getBoolean(R.styleable.MyKeyboard_isNumRow, false) + isNumbersRow = a.getBoolean(R.styleable.MyKeyboard_isNumbersRow, false) a.recycle() } } @@ -346,7 +346,7 @@ class MyKeyboard { when (parser.name) { TAG_ROW -> { currentRow = createRowFromXml(res, parser) - if (currentRow.isNumRow && !context.config.showNumbersRow) { + if (currentRow.isNumbersRow && !context.config.showNumbersRow) { continue } inRow = true @@ -355,7 +355,7 @@ class MyKeyboard { } TAG_KEY -> { - if (currentRow?.isNumRow == true && !context.config.showNumbersRow) { + if (currentRow?.isNumbersRow == true && !context.config.showNumbersRow) { continue } inKey = true diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 4b8b07e..994aa3e 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -11,7 +11,7 @@ - + diff --git a/app/src/main/res/xml/keys_letters_bengali.xml b/app/src/main/res/xml/keys_letters_bengali.xml index 085f23f..8803bbb 100644 --- a/app/src/main/res/xml/keys_letters_bengali.xml +++ b/app/src/main/res/xml/keys_letters_bengali.xml @@ -1,6 +1,6 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - +