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

Commit 87bf4f3b authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Ensure that the gesture handler always gets configuration change" into...

Merge "Ensure that the gesture handler always gets configuration change" into tm-qpr-dev am: 99c9b945 am: 3cdd7060

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



Change-Id: I64b96788956540ad1df103c7f4d60327b775c81c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9cb15271 3cdd7060
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -847,6 +847,11 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
            refreshLayout(ld);
        }
        repositionNavigationBar(rotation);
        // NOTE(b/260220098): In some cases, the recreated nav bar will already have the right
        // configuration, which means that NavBarView will not receive a configuration change to
        // propagate to EdgeBackGestureHandler (which is injected into this and NBV). As such, we
        // should also force-update the gesture handler to ensure it updates to the right bounds
        mEdgeBackGestureHandler.onConfigurationChanged(newConfig);
        if (canShowSecondaryHandle()) {
            if (rotation != mCurrentRotation) {
                mCurrentRotation = rotation;