From ca5437cab81a2cd8d670e5a73f3b6517d07f3ba8 Mon Sep 17 00:00:00 2001 From: Michal Karpinski Date: Wed, 6 Mar 2019 13:08:07 +0000 Subject: [PATCH] Rename BroadcastOptions.setAllowBackgroundActivityStarts() to setBackgroundActivityStartsAllowed() Per the feedback from the API council. Bug: 127465469 Test: make -j update-api && make -j Change-Id: If6c343dc86829aa9f3d919caf27c4e1ab907ec72 --- api/system-current.txt | 2 +- core/java/android/app/BroadcastOptions.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/system-current.txt b/api/system-current.txt index b646db347b6e6..cc6226049c0f0 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -474,7 +474,7 @@ package android.app { public class BroadcastOptions { method public static android.app.BroadcastOptions makeBasic(); - method @RequiresPermission("android.permission.START_ACTIVITIES_FROM_BACKGROUND") public void setAllowBackgroundActivityStarts(boolean); + method @RequiresPermission("android.permission.START_ACTIVITIES_FROM_BACKGROUND") public void setBackgroundActivityStartsAllowed(boolean); method public void setDontSendToRestrictedApps(boolean); method @RequiresPermission(android.Manifest.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST) public void setTemporaryAppWhitelistDuration(long); method public android.os.Bundle toBundle(); diff --git a/core/java/android/app/BroadcastOptions.java b/core/java/android/app/BroadcastOptions.java index 062a462b71fd5..161e2ad06ec06 100644 --- a/core/java/android/app/BroadcastOptions.java +++ b/core/java/android/app/BroadcastOptions.java @@ -61,7 +61,7 @@ public class BroadcastOptions { "android:broadcast.dontSendToRestrictedApps"; /** - * Corresponds to {@link #setAllowBackgroundActivityStarts}. + * Corresponds to {@link #setBackgroundActivityStartsAllowed}. */ static final String KEY_ALLOW_BACKGROUND_ACTIVITY_STARTS = "android:broadcast.allowBackgroundActivityStarts"; @@ -161,7 +161,7 @@ public class BroadcastOptions { * the broadcast dispatch. Default value is {@code false} */ @RequiresPermission(android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND) - public void setAllowBackgroundActivityStarts(boolean allowBackgroundActivityStarts) { + public void setBackgroundActivityStartsAllowed(boolean allowBackgroundActivityStarts) { mAllowBackgroundActivityStarts = allowBackgroundActivityStarts; }