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

Commit b4c455b7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ignore the live tile app for accessibility"

parents ebd94ad8 d2d3e44e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1246,6 +1246,11 @@ final class AccessibilityController {
        private boolean windowMattersToAccessibility(WindowState windowState,
                Region regionInScreen, Region unaccountedSpace,
                HashSet<Integer> skipRemainingWindowsForTasks) {
            final RecentsAnimationController controller = mService.getRecentsAnimationController();
            if (controller != null && controller.shouldIgnoreForAccessibility(windowState)) {
                return false;
            }

            if (windowState.isFocused()) {
                return true;
            }
+5 −0
Original line number Diff line number Diff line
@@ -760,6 +760,11 @@ public class RecentsAnimationController implements DeathRecipient {
        return false;
    }

    boolean shouldIgnoreForAccessibility(WindowState windowState) {
        final Task task = windowState.getTask();
        return task != null && isAnimatingTask(task) && !isTargetApp(windowState.mAppToken);
    }

    @VisibleForTesting
    class TaskAnimationAdapter implements AnimationAdapter {