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

Commit 6a648913 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Remove assumptions about specific transition types for identifying recents" into main

parents 5adfd4a5 31934942
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -712,12 +712,16 @@ final class AccessibilityController {
            if (!isMagnifierActivated) {
                return;
            }
            // All opening/closing situations.
            // All opening/closing/recents transitions
            boolean notify = (flags & TRANSIT_FLAG_IS_RECENTS) != 0;
            switch (type) {
                case WindowManager.TRANSIT_OPEN:
                case WindowManager.TRANSIT_TO_FRONT:
                case WindowManager.TRANSIT_CLOSE:
                case WindowManager.TRANSIT_TO_BACK:
                    notify = true;
            }
            if (notify) {
                mUserContextChangedNotifier.onWMTransition(type, flags);
            }
        }
@@ -1088,8 +1092,7 @@ final class AccessibilityController {
            // causing the notifying, or the recents/home window is removed, then we won't need the
            // delayed notification anymore.
            void onWMTransition(@TransitionType int type, @TransitionFlags int flags) {
                if (type == WindowManager.TRANSIT_TO_FRONT
                        && (flags & TRANSIT_FLAG_IS_RECENTS) != 0) {
                if ((flags & TRANSIT_FLAG_IS_RECENTS) != 0) {
                    // Delay the recents to front transition notification then send after if needed.
                    mHasDelayedNotificationForRecentsToFrontTransition = true;
                } else {