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

Commit fedcd296 authored by Tiger Huang's avatar Tiger Huang
Browse files

Fix a potential NullPointerException in InsetsPolicy

Fix: 151308746
Test: Presubmit
Change-Id: Ia98f809c08d741a01a75979c03eb6ddfbc86fd89
parent d0db17a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -97,7 +97,8 @@ class InsetsPolicy {

    private void updateHideNavInputEventReceiver() {
        mPolicy.updateHideNavInputEventReceiver(!isHidden(ITYPE_NAVIGATION_BAR),
                mFocusedWin.mAttrs.insetsFlags.behavior != BEHAVIOR_SHOW_BARS_BY_TOUCH);
                mFocusedWin != null
                        && mFocusedWin.mAttrs.insetsFlags.behavior != BEHAVIOR_SHOW_BARS_BY_TOUCH);
    }

    boolean isHidden(@InternalInsetsType int type) {