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

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

Merge "Replace getBatteryIntent() to centralized method"

parents 57258a37 7cf9d010
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -618,8 +618,7 @@ public class BatteryUtils {

    /** Gets the latest sticky battery intent from the Android system. */
    public static Intent getBatteryIntent(Context context) {
        return context.registerReceiver(
                /*receiver=*/ null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
        return com.android.settingslib.fuelgauge.BatteryUtils.getBatteryIntent(context);
    }

    /** Gets the current dock defender mode */