diff options
| author | 2018-08-09 09:22:45 -0700 | |
|---|---|---|
| committer | 2018-08-09 13:10:31 -0700 | |
| commit | ce0823c786370eb6b39d3c35d81eb81ae0168989 (patch) | |
| tree | 68bd18332d8a661b743fcad8614d722ca1ec550f | |
| parent | cfb8d9931bae16fe9239c4befbfed85ab96d4a2f (diff) | |
Fix questionable condition
Fix a typo in InputReader.cpp.
Bug: 112154205
Test: None
Change-Id: Ia8fa9062e0881ca8fca45353829ae0762dfdd389
Merged-In: Ia8fa9062e0881ca8fca45353829ae0762dfdd389
| -rw-r--r-- | services/inputflinger/InputReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp index e0cd8a005a..21a9bce273 100644 --- a/services/inputflinger/InputReader.cpp +++ b/services/inputflinger/InputReader.cpp @@ -3018,7 +3018,7 @@ void RotaryEncoderInputMapper::configure(nsecs_t when, if (!changes) { mRotaryEncoderScrollAccumulator.configure(getDevice()); } - if (!changes || (InputReaderConfiguration::CHANGE_DISPLAY_INFO)) { + if (!changes || (changes & InputReaderConfiguration::CHANGE_DISPLAY_INFO)) { DisplayViewport v; if (config->getDisplayViewport(ViewportType::VIEWPORT_INTERNAL, NULL, &v)) { mOrientation = v.orientation; |