aboutsummaryrefslogtreecommitdiff
path: root/ime/app
diff options
context:
space:
mode:
authorWisha Wa <wisha.wa@yandex.com>2020-07-07 06:17:31 +0000
committerWisha Wa <wisha.wa@yandex.com>2020-07-07 06:17:31 +0000
commitca2caab5d83863d8a0a163521c0ff6e067856870 (patch)
treea93995ccb2684e11dfe5f1995ef4b5439f89a19b /ime/app
parentea96f91410fd698263bf89c3c5e3796bb7ce0e24 (diff)
downloadAnySoftKeyboard-ca2caab5d83863d8a0a163521c0ff6e067856870.tar.gz
AnySoftKeyboard-ca2caab5d83863d8a0a163521c0ff6e067856870.tar.bz2
fix formatting of AnyKeyboard.java again (last one was faulty somehow)
Diffstat (limited to 'ime/app')
-rw-r--r--ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java25
1 files changed, 13 insertions, 12 deletions
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java
index e59df80f5..5c83c6dbf 100644
--- a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java
+++ b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/AnyKeyboard.java
@@ -792,9 +792,9 @@ public abstract class AnyKeyboard extends Keyboard {
shiftedKeyLabel = a.getString(remoteIndex);
break;
case R.attr.isShiftAlways:
- mShiftCodesAlwaysOverride = true;
- mShiftCodesAlways = a.getBoolean(remoteIndex, false);
- break;
+ mShiftCodesAlwaysOverride = true;
+ mShiftCodesAlways = a.getBoolean(remoteIndex, false);
+ break;
case R.attr.hintLabel:
hintLabel = a.getString(remoteIndex);
break;
@@ -836,15 +836,16 @@ public abstract class AnyKeyboard extends Keyboard {
}
}
- if (!mShiftCodesAlwaysOverride) {
- // if the shift-character is a symbol, we only show it if the SHIFT is pressed,
- // not if the shift is active.
- mShiftCodesAlways =
- mShiftedCodes.length == 0
- || Character.isLetter(mShiftedCodes[0])
- || Character.getType(mShiftedCodes[0]) == Character.NON_SPACING_MARK
- || Character.getType(mShiftedCodes[0]) == Character.COMBINING_SPACING_MARK;
- }
+ if (!mShiftCodesAlwaysOverride) {
+ // if the shift-character is a symbol, we only show it if the SHIFT is pressed,
+ // not if the shift is active.
+ mShiftCodesAlways =
+ mShiftedCodes.length == 0
+ || Character.isLetter(mShiftedCodes[0])
+ || Character.getType(mShiftedCodes[0]) == Character.NON_SPACING_MARK
+ || Character.getType(mShiftedCodes[0])
+ == Character.COMBINING_SPACING_MARK;
+ }
if (popupCharacters != null && popupCharacters.length() == 0) {
// If there is a keyboard with no keys specified in