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

Commit 336f4148 authored by Kiril Mikos's avatar Kiril Mikos Committed by Gerrit Code Review
Browse files

Fix rotation animation in expanded mode.

When expanded mode is enabled we never changing
value of mTopIsFullscreen but it should be updated so
selectRotationAnimationLw will choose correct animation.

Change-Id: I08906d4237696fe549b3799da38b58a0d56ac62c
parent f64f3c9e
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -3787,10 +3787,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            if (DEBUG_LAYOUT) Log.i(TAG, "force=" + mForceStatusBar
                    + " forcefkg=" + mForceStatusBarFromKeyguard
                    + " top=" + mTopFullscreenOpaqueWindowState);
            if (expandedDesktopHidesStatusBar()) {
                if (DEBUG_LAYOUT) Log.v(TAG, "Hiding status bar: expanded desktop enabled");
                if (mStatusBar.hideLw(true)) changes |= FINISH_LAYOUT_REDO_LAYOUT;
            } else if (mForceStatusBar || mForceStatusBarFromKeyguard) {
            if (mForceStatusBar || mForceStatusBarFromKeyguard
                    && !expandedDesktopHidesStatusBar()) {
                if (DEBUG_LAYOUT) Log.v(TAG, "Showing status bar: forced");
                if (mStatusBar.showLw(true)) changes |= FINISH_LAYOUT_REDO_LAYOUT;
            } else if (mTopFullscreenOpaqueWindowState != null) {
@@ -3806,7 +3804,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                // and mTopIsFullscreen is that that mTopIsFullscreen is set only if the window
                // has the FLAG_FULLSCREEN set.  Not sure if there is another way that to be the
                // case though.
                if (topIsFullscreen) {
                if (topIsFullscreen || expandedDesktopHidesStatusBar()) {
                    if (DEBUG_LAYOUT) Log.v(TAG, "** HIDING status bar");
                    if (mStatusBar.hideLw(true)) {
                        changes |= FINISH_LAYOUT_REDO_LAYOUT;