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

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

Change-Id: I1a400c8da340f73fef059a94fb9326134acfeddc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Winson Chung
2022-12-17 05:31:40 +00:00
committed by Automerger Merge Worker

View File

@@ -832,6 +832,11 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
}
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;