summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Michael Wright <michaelwr@google.com> 2013-08-22 23:37:33 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-08-22 23:37:34 +0000
commit0ccb7d117fa13933cb0d7820387e00f3d1aff18d (patch)
treee0c1cd35cfe8de819a26a1567ed8b87cce1e2947
parent76cf8fe75e7c1abce9383fb915842f62228a1d91 (diff)
parent2132198d052ca68a6aa2433274f12203a71451df (diff)
Merge "Fix check for default source in input command" into klp-dev
-rw-r--r--cmds/input/src/com/android/commands/input/Input.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/input/src/com/android/commands/input/Input.java b/cmds/input/src/com/android/commands/input/Input.java
index 473b60c4f277..2a7c79bdfb5b 100644
--- a/cmds/input/src/com/android/commands/input/Input.java
+++ b/cmds/input/src/com/android/commands/input/Input.java
@@ -265,7 +265,7 @@ public class Input {
}
private static final int getSource(int inputSource, int defaultSource) {
- return inputSource == -1 ? defaultSource : inputSource;
+ return inputSource == InputDevice.SOURCE_UNKNOWN ? defaultSource : inputSource;
}
private void showUsage() {