Merge "Fix check for default source in input command" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0ccb7d117f
@@ -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