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

Commit b8b717f7 authored by Evan Laird's avatar Evan Laird
Browse files

Null check on NavigationBarView in NavigationBarFragment

While sysui is starting, it's possible to get disable callbacks before
the NavigationBarView has had a chance to get created. In this case just
don't pass the message, similar to Disable1 callbacks

Change-Id: Ic89ca281579ff9720c356f79102d1b576670740a
Fixes: 118357487
Test: no exceptions during system boot after wiping
parent bd70ed4c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -478,8 +478,10 @@ public class NavigationBarFragment extends Fragment implements Callbacks {

    private void setDisabled2Flags(int state2) {
        // Method only called on change of disable2 flags
        if (mNavigationBarView != null) {
            mNavigationBarView.getRotateSuggestionButton().onDisable2FlagChanged(state2);
        }
    }

    // ----- Internal stuffz -----