Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 655b47c6 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

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
parent fa6e021c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }