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

Commit dc4915de authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Use rotation animation for visible wallpaper rotation

Although the activity may show in next rotation directly,
the wallpaper was shown in different orientation. If there
is no animation to cover the change, there will be obvious
jump cut that looks flickering.

Bug: 187149609
Test: 1. Enable launcher rotation and auto rotation
      2. Put device in landscape
      3. Lock and unlock screen
      There will be a rotation animation.
Change-Id: I5048d0c7597cdc5c9a84fa4a3b7d6feea80892ee
parent 393c625a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1569,6 +1569,10 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
            // If the transition has not started yet, the activity must be the top.
            return false;
        }
        if (mLastWallpaperVisible && r.windowsCanBeWallpaperTarget()) {
            // Use normal rotation animation for orientation change of visible wallpaper.
            return false;
        }
        final int rotation = rotationForActivityInDifferentOrientation(r);
        if (rotation == ROTATION_UNDEFINED) {
            // The display rotation won't be changed by current top activity. The client side