Rename BroadcastOptions.setAllowBackgroundActivityStarts() to
setBackgroundActivityStartsAllowed() Per the feedback from the API council. Bug: 127465469 Test: make -j update-api && make -j Change-Id: If6c343dc86829aa9f3d919caf27c4e1ab907ec72
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user