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

Commit e5cfc455 authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

Merge "Centralise time to full in SettingsLib" into main

parents f95bad67 9f31127d
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(