Fix check for default source in input command
Change-Id: I30b062e78c7d4de59a5530999e6332ba3053f7c9
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user