Skip to content

Commit 7bb026b

Browse files
refactor: renamed isNumRow to isNumbersRow
1 parent 5363970 commit 7bb026b

16 files changed

+19
-19
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/MyKeyboard.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class MyKeyboard {
9797

9898
var parent: MyKeyboard
9999

100-
var isNumRow: Boolean = false
100+
var isNumbersRow: Boolean = false
101101

102102
constructor(parent: MyKeyboard) {
103103
this.parent = parent
@@ -109,7 +109,7 @@ class MyKeyboard {
109109
defaultWidth = getDimensionOrFraction(a, R.styleable.MyKeyboard_keyWidth, parent.mDisplayWidth, parent.mDefaultWidth)
110110
defaultHeight = (res.getDimension(R.dimen.key_height) * this.parent.mKeyboardHeightMultiplier).roundToInt()
111111
defaultHorizontalGap = getDimensionOrFraction(a, R.styleable.MyKeyboard_horizontalGap, parent.mDisplayWidth, parent.mDefaultHorizontalGap)
112-
isNumRow = a.getBoolean(R.styleable.MyKeyboard_isNumRow, false)
112+
isNumbersRow = a.getBoolean(R.styleable.MyKeyboard_isNumbersRow, false)
113113
a.recycle()
114114
}
115115
}
@@ -346,7 +346,7 @@ class MyKeyboard {
346346
when (parser.name) {
347347
TAG_ROW -> {
348348
currentRow = createRowFromXml(res, parser)
349-
if (currentRow.isNumRow && !context.config.showNumbersRow) {
349+
if (currentRow.isNumbersRow && !context.config.showNumbersRow) {
350350
continue
351351
}
352352
inRow = true
@@ -355,7 +355,7 @@ class MyKeyboard {
355355
}
356356

357357
TAG_KEY -> {
358-
if (currentRow?.isNumRow == true && !context.config.showNumbersRow) {
358+
if (currentRow?.isNumbersRow == true && !context.config.showNumbersRow) {
359359
continue
360360
}
361361
inKey = true

app/src/main/res/values/attrs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<declare-styleable name="MyKeyboard">
1212
<attr name="keyWidth" format="fraction" />
1313
<attr name="horizontalGap" format="fraction" />
14-
<attr name="isNumRow" format="boolean" />
14+
<attr name="isNumbersRow" format="boolean" />
1515
</declare-styleable>
1616

1717
<declare-styleable name="MyKeyboard_Key">

app/src/main/res/xml/keys_letters_bengali.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_bulgarian.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_english_dvorak.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_english_qwerty.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_english_qwertz.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_french.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_german.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

app/src/main/res/xml/keys_letters_greek.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Keyboard xmlns:app="http://schemas.android.com/apk/res-auto">
3-
<Row app:isNumRow="true">
3+
<Row app:isNumbersRow="true">
44
<Key
55
app:keyEdgeFlags="left"
66
app:keyLabel="1"

0 commit comments

Comments
 (0)