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

Commit a19ee1fc authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Automerger Merge Worker
Browse files

Merge "Update system APIs based on feedback." am: 1ae5b8e8 am: 07b95a8a...

Merge "Update system APIs based on feedback." am: 1ae5b8e8 am: 07b95a8a am: 9b57c55f am: 6d406692

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



Change-Id: I435f50d4ac75195966b1ce853cdb8f2854c8a462
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e52b64a2 6d406692
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -838,11 +838,9 @@ package android.app {
  public class BroadcastOptions {
    method public void clearRequireCompatChange();
    method public int getPendingIntentBackgroundActivityStartMode();
    method @Deprecated public boolean isDeferUntilActive();
    method @Deprecated public boolean isPendingIntentBackgroundActivityLaunchAllowed();
    method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RESPONSE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from=0) long);
    method @RequiresPermission(android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND) public void setBackgroundActivityStartsAllowed(boolean);
    method @Deprecated @NonNull public android.app.BroadcastOptions setDeferUntilActive(boolean);
    method public void setDontSendToRestrictedApps(boolean);
    method @Deprecated public void setPendingIntentBackgroundActivityLaunchAllowed(boolean);
    method @NonNull public android.app.BroadcastOptions setPendingIntentBackgroundActivityStartMode(int);
+0 −4
Original line number Diff line number Diff line
@@ -769,9 +769,7 @@ public class BroadcastOptions extends ComponentOptions {
    }

    /** {@hide} */
    @SystemApi
    @Deprecated
    // STOPSHIP: remove entirely after this API change lands in AOSP
    public @NonNull BroadcastOptions setDeferUntilActive(boolean shouldDefer) {
        if (shouldDefer) {
            setDeferralPolicy(DEFERRAL_POLICY_UNTIL_ACTIVE);
@@ -782,9 +780,7 @@ public class BroadcastOptions extends ComponentOptions {
    }

    /** {@hide} */
    @SystemApi
    @Deprecated
    // STOPSHIP: remove entirely after this API change lands in AOSP
    public boolean isDeferUntilActive() {
        return (mDeferralPolicy == DEFERRAL_POLICY_UNTIL_ACTIVE);
    }