Skip to content

Commit

Permalink
Avoid a rogue SystemUI crash
Browse files Browse the repository at this point in the history
A nullpointer exception occured when opening LiquidLounge>StatusBar or LiquidLounge>Notifications for the first time after a clean flash. This is a stopgap fix until we figure out the real reason behind the exception.

Signed-off-by: sayan7848 <sayan7848@gmail.com>
  • Loading branch information
sayan7848 committed Oct 3, 2019
1 parent 16705bd commit 8ef9e84
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -443,6 +443,8 @@ private void setCarrierLabel(boolean animate) {
}

public void updateLogoSettings(boolean animate) {
if (getContext() == null)
return;
mShowLogo = Settings.System.getIntForUser(
getContext().getContentResolver(), Settings.System.STATUS_BAR_LOGO, 0,
UserHandle.USER_CURRENT) == 1;

0 comments on commit 8ef9e84

Please sign in to comment.