commit | a4e12ba2052e22a86571c4674df3936c85c0a578 | [log] [tgz] |
---|---|---|
author | Lucas Dupin <dupin@google.com> | Thu Apr 18 11:56:28 2019 -0700 |
committer | Lucas Dupin <dupin@google.com> | Thu Apr 18 11:56:28 2019 -0700 |
tree | 632995de784476ac795b1aa1f6922e1518418470 | |
parent | db44ba1e85fbba8ad9628d48af6948fb3757c0d9 [diff] |
Fix dark mode NPE Fixes: 130812424 Test: toggle dark mode via tile after rebooting and dimssing power menu Change-Id: I230c843f3246661286e2b4f56540da58fe8b0a3c
diff --git a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java index 411536c..505957a 100644 --- a/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +++ b/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java
@@ -438,7 +438,7 @@ @Override public void onUiModeChanged() { mContext.getTheme().applyStyle(mContext.getThemeResId(), true); - if (mDialog.isShowing()) { + if (mDialog != null && mDialog.isShowing()) { mDialog.refreshDialog(); } }