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

Commit 4ec1f624 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am:...

Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: da8101d2 am: 438452ca am: 25d36142

Change-Id: Ic989c2aab472b0513656b96012589f7ec029a34c
parents bf9d45a9 25d36142
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -2224,15 +2224,27 @@ public final class PowerManager {
     * Intent that is broadcast when the state of {@link #isPowerSaveMode()} is about to change.
     * This broadcast is only sent to registered receivers.
     *
     * @deprecated This is sent at the same time as {@link #ACTION_POWER_SAVE_MODE_CHANGED} so it
     * does not provide advanced warning. As such it will be removed in future Android versions.
     * Use {@link #ACTION_POWER_SAVE_MODE_CHANGED} and {@link #isPowerSaveMode()} instead.
     *
     * @hide
     */
    @UnsupportedAppUsage
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q,
            publicAlternatives = "Use {@link #ACTION_POWER_SAVE_MODE_CHANGED} instead.")
    @SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION)
    @Deprecated
    public static final String ACTION_POWER_SAVE_MODE_CHANGING
            = "android.os.action.POWER_SAVE_MODE_CHANGING";

    /** @hide */
    @UnsupportedAppUsage
    /**
     * @deprecated Use {@link #isPowerSaveMode()} instead.
     *
     * @hide
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q,
            publicAlternatives = "Use {@link #isPowerSaveMode()} instead.")
    @Deprecated
    public static final String EXTRA_POWER_SAVE_MODE = "mode";

    /**