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

Commit 7a4b350a authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Notify Accessibilty about rotation in applyRotation" into rvc-dev am:...

Merge "Notify Accessibilty about rotation in applyRotation" into rvc-dev am: 1edeeee3 am: ab6b6ae3

Change-Id: I06ffbbdcf2f7917276be7d27b904473c9a5221a1
parents 02a91e9b ab6b6ae3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1620,9 +1620,7 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
            }
        }

        // Announce rotation only if we will not animate as we already have the
        // windows in final state. Otherwise, we make this call at the rotation end.
        if (screenRotationAnimation == null && mWmService.mAccessibilityController != null) {
        if (mWmService.mAccessibilityController != null) {
            mWmService.mAccessibilityController.onRotationChangedLocked(this);
        }
    }
+0 −7
Original line number Diff line number Diff line
@@ -732,13 +732,6 @@ class ScreenRotationAnimation {
                mService.mAnimator.mBulkUpdateParams |= WindowSurfacePlacer.SET_UPDATE_ROTATION;
                kill();
                mService.updateRotation(false, false);
                AccessibilityController accessibilityController = mService.mAccessibilityController;

                if (accessibilityController != null) {
                    // We just finished rotation animation which means we did not
                    // announce the rotation and waited for it to end, announce now.
                    accessibilityController.onRotationChangedLocked(mDisplayContent);
                }
            }
        }