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

Commit 3ef37301 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Update low battery notification logging timing" into tm-dev am:...

Merge "Update low battery notification logging timing" into tm-dev am: cb417881 am: 5c37ab98 am: 16836233

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18579411



Change-Id: If65eab1a3f24a067739fb282714d98974e284e03
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1869a45c 16836233
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -307,6 +307,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
                        .setContentText(contentText)
                        .setContentTitle(title)
                        .setOnlyAlertOnce(true)
                        .setDeleteIntent(pendingBroadcast(ACTION_DISMISSED_WARNING))
                        .setStyle(new Notification.BigTextStyle().bigText(contentText))
                        .setVisibility(Notification.VISIBILITY_PUBLIC);
        if (hasBatterySettings()) {
@@ -333,7 +334,6 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
        final Notification n = nb.build();
        mNoMan.cancelAsUser(TAG_BATTERY, SystemMessage.NOTE_BAD_CHARGER, UserHandle.ALL);
        mNoMan.notifyAsUser(TAG_BATTERY, SystemMessage.NOTE_POWER_LOW, n, UserHandle.ALL);
        logEvent(BatteryWarningEvents.LowBatteryWarningEvent.LOW_BATTERY_NOTIFICATION);
    }

    private boolean showSevereLowBatteryDialog() {
@@ -615,6 +615,7 @@ public class PowerNotificationWarnings implements PowerUI.WarningsUI {
        Slog.i(TAG,
                "show low battery warning: level=" + mBatteryLevel
                        + " [" + mBucket + "] playSound=" + playSound);
        logEvent(BatteryWarningEvents.LowBatteryWarningEvent.LOW_BATTERY_NOTIFICATION);
        mPlaySound = playSound;
        mWarning = true;
        updateNotification();