Fix display changed flag check optimization
Seeing bugs come in where display rotation value is incorrect, correcting the check to only exclude frame rate change flags since multiple bits can be set. Fixes: 158383147 Change-Id: If6cdd2c10bf80024ac655451b957034ed84684a7
This commit is contained in:
@@ -261,7 +261,7 @@ public class RecentsAnimationDeviceState implements
|
||||
|
||||
@Override
|
||||
public void onDisplayInfoChanged(DefaultDisplay.Info info, int flags) {
|
||||
if (info.id != getDisplayId() || (flags & CHANGE_FRAME_DELAY) == CHANGE_FRAME_DELAY) {
|
||||
if (info.id != getDisplayId() || flags == CHANGE_FRAME_DELAY) {
|
||||
// ignore displays that aren't running launcher and frame refresh rate changes
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user