Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: remoting/android/java/src/org/chromium/chromoting/Desktop.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/android/java/src/org/chromium/chromoting/Desktop.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/Desktop.java b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
index 501f6dd87278c4d90bc5c60934aeeacd48a2e98e..85c0a93310f9e81dbaba2739f421bd69734ac846 100644
--- a/remoting/android/java/src/org/chromium/chromoting/Desktop.java
+++ b/remoting/android/java/src/org/chromium/chromoting/Desktop.java
@@ -246,11 +246,11 @@ public class Desktop extends ActionBarActivity implements View.OnSystemUiVisibil
// want to send it as KeyEvent.
int unicode = keyCode != KeyEvent.KEYCODE_ENTER ? event.getUnicodeChar() : 0;
- boolean no_modifiers = !event.isAltPressed() &&
- !event.isCtrlPressed() && !event.isMetaPressed();
+ boolean no_modifiers = !event.isAltPressed()
+ && !event.isCtrlPressed() && !event.isMetaPressed();
- if (event.getDeviceId() == KeyCharacterMap.VIRTUAL_KEYBOARD &&
- pressed && unicode != 0 && no_modifiers) {
+ if (event.getDeviceId() == KeyCharacterMap.VIRTUAL_KEYBOARD
+ && pressed && unicode != 0 && no_modifiers) {
mPressedTextKeys.add(keyCode);
int[] codePoints = { unicode };
JniInterface.sendTextEvent(new String(codePoints, 0, 1));

Powered by Google App Engine
This is Rietveld 408576698