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

Commit 2462a50e authored by Jason Monk's avatar Jason Monk
Browse files

Guard against battery tile crash

Bug: 27419759
Change-Id: Ic152ab56f7648e7346cbddf21840bd5313e50d3c
parent 1aeb31bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -181,6 +181,9 @@ public class BatteryTile extends QSTile<QSTile.State> implements BatteryControll
        }

        private void bindView() {
            if (mCurrentView == null) {
                return;
            }
            mDrawable.onBatteryLevelChanged(100, false, false);
            mDrawable.onPowerSaveChanged(true);
            mDrawable.disableShowPercent();