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

Commit 635d9289 authored by Linux4's avatar Linux4
Browse files

base: SystemUI: fix NPE in PowerShareTile

Change-Id: If69846f3e3d4f3a12c0f78f47b5adc1008888de1
parent 54c4dd59
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -57,9 +57,6 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
        }

        mBatteryController = batteryController;

        batteryController.addCallback(this);

        mNotificationManager = mContext.getSystemService(NotificationManager.class);

        NotificationChannel notificationChannel = new NotificationChannel(CHANNEL_ID,
@@ -74,6 +71,8 @@ public class PowerShareTile extends QSTileImpl<BooleanState>
        mNotification = builder.build();
        mNotification.flags |= Notification.FLAG_NO_CLEAR | Notification.FLAG_ONGOING_EVENT;
        mNotification.visibility = Notification.VISIBILITY_PUBLIC;

        batteryController.addCallback(this);
    }

    @Override