Merge "Check for nullable AutoHideController" into tm-dev am: 97276bc19b

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

Change-Id: Ia054a39b023bc66e979bddd0890b57a79422dfac
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vinit Nayak
2022-04-06 17:30:16 +00:00
committed by Automerger Merge Worker

View File

@@ -143,6 +143,7 @@ public class NavigationBarView extends FrameLayout {
private boolean mDeadZoneConsuming = false; private boolean mDeadZoneConsuming = false;
private final NavigationBarTransitions mBarTransitions; private final NavigationBarTransitions mBarTransitions;
private final OverviewProxyService mOverviewProxyService; private final OverviewProxyService mOverviewProxyService;
@Nullable
private AutoHideController mAutoHideController; private AutoHideController mAutoHideController;
// performs manual animation in sync with layout transitions // performs manual animation in sync with layout transitions
@@ -316,7 +317,7 @@ public class NavigationBarView extends FrameLayout {
}; };
private final Consumer<Boolean> mNavbarOverlayVisibilityChangeCallback = (visible) -> { private final Consumer<Boolean> mNavbarOverlayVisibilityChangeCallback = (visible) -> {
if (visible) { if (visible && mAutoHideController != null) {
mAutoHideController.touchAutoHide(); mAutoHideController.touchAutoHide();
} }
notifyActiveTouchRegions(); notifyActiveTouchRegions();