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

Commit 9f31127d authored by Trina's avatar Trina
Browse files

Centralise time to full in SettingsLib

Test: atest SystemUIGoogleTests

Bug: 275679195
Change-Id: Ibc269d4e30a5ad08aa22c288a66f87707c1ca4a8
parent 5f3feb74
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,6 +22,9 @@ import android.content.IntentFilter;

public final class BatteryUtils {

    /** The key to get the time to full from Settings.Global */
    public static final String GLOBAL_TIME_TO_FULL_MILLIS = "time_to_full_millis";

    /** Gets the latest sticky battery intent from the Android system. */
    public static Intent getBatteryIntent(Context context) {
        return context.registerReceiver(