Fix questionable condition
Fix a typo in InputReader.cpp.
Bug: 112154205
Test: None
Change-Id: Ia8fa9062e0881ca8fca45353829ae0762dfdd389
diff --git a/services/inputflinger/InputReader.cpp b/services/inputflinger/InputReader.cpp
index 5adb75c..beda75a 100644
--- a/services/inputflinger/InputReader.cpp
+++ b/services/inputflinger/InputReader.cpp
@@ -3018,7 +3018,7 @@
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, nullptr, &v)) {
mOrientation = v.orientation;