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

Commit 3d6f5994 authored by Shawn Lin's avatar Shawn Lin Committed by Automerger Merge Worker
Browse files

Merge "The nav bar isn't restored when swiping an app up to home in landscape"...

Merge "The nav bar isn't restored when swiping an app up to home in landscape" into sc-dev am: cb10463a am: 438542b4 am: f7875f0c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14660738

Change-Id: Idc1fd4f0ff4f446cfab679c6d15d451ce38d12b4
parents 42970589 f7875f0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1801,7 +1801,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
            return false;
        }
        final FadeRotationAnimationController controller = mFadeRotationAnimationController;
        return controller == null || !controller.isTargetToken(w.mToken);
        return controller == null || !controller.isHandledToken(w.mToken);
    }

    void notifyInsetsChanged(Consumer<WindowState> dispatchInsetsChanged) {
+6 −1
Original line number Diff line number Diff line
@@ -123,8 +123,13 @@ public class FadeRotationAnimationController extends FadeAnimationController {
    }

    /** Returns {@code true} if the window is handled by this controller. */
    boolean isHandledToken(WindowToken token) {
        return token == mNavBarToken || isTargetToken(token);
    }

    /** Returns {@code true} if the controller will run fade animations on the window. */
    boolean isTargetToken(WindowToken token) {
        return token == mNavBarToken || mTargetWindowTokens.contains(token);
        return mTargetWindowTokens.contains(token);
    }

    void setOnShowRunnable(Runnable onShowRunnable) {