Skip to content

Commit 92e0aaf

Browse files
committed
SystemUI: fix NPE on global actions dialog
SystemUI would crash when accidentaly double tapping reboot (at least when advanced reboot is enabled) test: manual Change-Id: I0bdb2beda23b77fccedfb70e05f5105f275d56b9 Signed-off-by: Timi <timi.rautamaki@gmail.com>
1 parent 94b7041 commit 92e0aaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,7 @@ public boolean onLongClickItem(int position) {
12881288

12891289
@Override
12901290
public void onClickItem(int position) {
1291+
if (mDialog == null) return;
12911292
Action item = mAdapter.getItem(position);
12921293
if (!(item instanceof SilentModeTriStateAction)) {
12931294
mDialog.dismiss();

0 commit comments

Comments
 (0)