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

Commit 533844bf authored by Nick Ning's avatar Nick Ning Committed by Automerger Merge Worker
Browse files

Merge "Add a static method to make charging animation for unknown battery...

Merge "Add a static method to make charging animation for unknown battery level." into tm-dev am: 3992f2e9

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

Change-Id: I4127691cb24b47a4ed8c4c6240dd84fe00c35e01
parents 89bb17f6 3992f2e9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.systemui.charging;

import static com.android.systemui.charging.WirelessChargingLayout.UNKNOWN_BATTERY_LEVEL;

import android.annotation.NonNull;
import android.annotation.Nullable;
import android.content.Context;
@@ -75,6 +77,16 @@ public class WirelessChargingAnimation {
                batteryLevel, callback, isDozing, uiEventLogger);
    }

    /**
     * Creates a charging animation object using mostly default values for non-dozing and unknown
     * battery level without charging number shown.
     */
    public static WirelessChargingAnimation makeChargingAnimationWithNoBatteryLevel(
            @NonNull Context context, UiEventLogger uiEventLogger) {
        return makeWirelessChargingAnimation(context, null,
                UNKNOWN_BATTERY_LEVEL, UNKNOWN_BATTERY_LEVEL, null, false, uiEventLogger);
    }

    /**
     * Show the view for the specified duration.
     */