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

Commit 25a06db3 authored by Erik Wolsheimer's avatar Erik Wolsheimer
Browse files

Do not assume presence of status bar service in GlobalActions

Bug: 36530618
Change-Id: I5f94fe52a5814b22f433fabefad2f509bf713d13
parent ca2cd33b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -43,8 +43,12 @@ class GlobalActions implements GlobalActionsListener {
        mLegacyGlobalActions = new LegacyGlobalActions(context, windowManagerFuncs,
                this::onGlobalActionsDismissed);
        mStatusBarInternal = LocalServices.getService(StatusBarManagerInternal.class);

        // Some form factors do not have a status bar.
        if (mStatusBarInternal != null) {
            mStatusBarInternal.setGlobalActionsListener(this);
        }
    }

    public void showDialog(boolean keyguardShowing, boolean deviceProvisioned) {
        if (DEBUG) Slog.d(TAG, "showDialog " + keyguardShowing + " " + deviceProvisioned);