diff options
author | Michael Wright <michaelwr@google.com> | 2013-08-22 15:01:15 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2013-08-22 15:01:15 -0700 |
commit | 2132198d052ca68a6aa2433274f12203a71451df (patch) | |
tree | 27d4417c33c161c41cfb09b0c24900a3507186ca /cmds/input/src/com | |
parent | 39c9c63295ad972a82076676a6cdaf34d9508f62 (diff) | |
download | frameworks_base-2132198d052ca68a6aa2433274f12203a71451df.zip frameworks_base-2132198d052ca68a6aa2433274f12203a71451df.tar.gz frameworks_base-2132198d052ca68a6aa2433274f12203a71451df.tar.bz2 |
Fix check for default source in input command
Change-Id: I30b062e78c7d4de59a5530999e6332ba3053f7c9
Diffstat (limited to 'cmds/input/src/com')
-rw-r--r-- | cmds/input/src/com/android/commands/input/Input.java | 2 |
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 473b60c..2a7c79b 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() { |