aboutsummaryrefslogtreecommitdiff
path: root/ime/app/src/main/java/com/anysoftkeyboard
diff options
context:
space:
mode:
authorMenny Even Danan <menny@evendanan.net>2020-06-20 04:28:07 +0000
committerMenny Even Danan <menny@evendanan.net>2020-06-20 04:28:07 +0000
commitd7081e2afdb9234be6c610fe504eb625a88e6c78 (patch)
treeb736c2e882fc72300c7636ae1c36f803734892f5 /ime/app/src/main/java/com/anysoftkeyboard
parentb0be46ae9a7fef08181940049921e6f67057c5a1 (diff)
downloadAnySoftKeyboard-d7081e2afdb9234be6c610fe504eb625a88e6c78.tar.gz
AnySoftKeyboard-d7081e2afdb9234be6c610fe504eb625a88e6c78.tar.bz2
Bump google-java-format
This tool requires Java11
Diffstat (limited to 'ime/app/src/main/java/com/anysoftkeyboard')
-rw-r--r--ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java6
-rw-r--r--ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java6
2 files changed, 8 insertions, 4 deletions
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java
index 80f5f0ba6..510335128 100644
--- a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java
+++ b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java
@@ -162,10 +162,12 @@ public abstract class MyMetaKeyKeyListener {
}
private static long press(long state, int what, long mask) {
- if ((state & (((long) what) << PRESSED_SHIFT)) != 0) ; // repeat before release
+ if ((state & (((long) what) << PRESSED_SHIFT)) != 0)
+ ; // repeat before release
else if ((state & (((long) what) << RELEASED_SHIFT)) != 0)
state = (state & ~mask) | what | (((long) what) << LOCKED_SHIFT);
- else if ((state & (((long) what) << USED_SHIFT)) != 0) ; // repeat after use
+ else if ((state & (((long) what) << USED_SHIFT)) != 0)
+ ; // repeat after use
else if ((state & (((long) what) << LOCKED_SHIFT)) != 0) state = state & ~mask;
else
state =
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java b/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java
index 88bee201e..ba6d042d2 100644
--- a/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java
+++ b/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java
@@ -26,7 +26,8 @@ public class XmlUtils {
throws XmlPullParserException, IOException {
int type;
while ((type = parser.next()) != XmlPullParser.START_TAG
- && type != XmlPullParser.END_DOCUMENT) ;
+ && type != XmlPullParser.END_DOCUMENT)
+ ;
if (type != XmlPullParser.START_TAG) {
throw new XmlPullParserException("No start tag found");
@@ -45,6 +46,7 @@ public class XmlUtils {
throws XmlPullParserException, IOException {
int type;
while ((type = parser.next()) != XmlPullParser.START_TAG
- && type != XmlPullParser.END_DOCUMENT) ;
+ && type != XmlPullParser.END_DOCUMENT)
+ ;
}
}