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

Commit ab04f9e1 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Check for nullable AutoHideController

* Wasn't able to repro, but we are currently checking
for null in other usages of mAutoHideController

Fixes: 227638744
Change-Id: I1168dc3a0f6c7dd3cfca4e22d1155b65d3afe0c3
parent 29ffb6ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -143,6 +143,7 @@ public class NavigationBarView extends FrameLayout {
    private boolean mDeadZoneConsuming = false;
    private final NavigationBarTransitions mBarTransitions;
    private final OverviewProxyService mOverviewProxyService;
    @Nullable
    private AutoHideController mAutoHideController;

    // performs manual animation in sync with layout transitions
@@ -316,7 +317,7 @@ public class NavigationBarView extends FrameLayout {
            };

    private final Consumer<Boolean> mNavbarOverlayVisibilityChangeCallback = (visible) -> {
        if (visible) {
        if (visible && mAutoHideController != null) {
            mAutoHideController.touchAutoHide();
        }
        notifyActiveTouchRegions();