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

Commit 88789a9a authored by Jason Monk's avatar Jason Monk
Browse files

Guard against NPE

Test: manual
Change-Id: I4ffc6aafb75b967f8a0a0ca0f0a3aeeb5d6e8c85
Fixes: 65229458
parent 89eceea5
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -202,11 +202,14 @@ class LegacyGlobalActions implements DialogInterface.OnDismissListener, DialogIn
                && !(mAdapter.getItem(0) instanceof LongPressAction)) {
            ((SinglePressAction) mAdapter.getItem(0)).onPress();
        } else {
            if (mDialog != null) {
                WindowManager.LayoutParams attrs = mDialog.getWindow().getAttributes();
                attrs.setTitle("LegacyGlobalActions");
                mDialog.getWindow().setAttributes(attrs);
                mDialog.show();
            mDialog.getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_DISABLE_EXPAND);
                mDialog.getWindow().getDecorView().setSystemUiVisibility(
                        View.STATUS_BAR_DISABLE_EXPAND);
            }
        }
    }