Merge "Fix clone method for ActivityOptions"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c76e3b50b1
@@ -1997,10 +1997,12 @@ public class ActivityOptions extends ComponentOptions {
|
||||
|
||||
/**
|
||||
* Sets background activity launch logic won't use pending intent creator foreground state.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void setIgnorePendingIntentCreatorForegroundState(boolean state) {
|
||||
public ActivityOptions setIgnorePendingIntentCreatorForegroundState(boolean state) {
|
||||
mIgnorePendingIntentCreatorForegroundState = state;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -143,7 +143,11 @@ public class SafeActivityOptions {
|
||||
.setLaunchTaskDisplayArea(options.getLaunchTaskDisplayArea())
|
||||
.setLaunchDisplayId(options.getLaunchDisplayId())
|
||||
.setCallerDisplayId(options.getCallerDisplayId())
|
||||
.setLaunchRootTask(options.getLaunchRootTask());
|
||||
.setLaunchRootTask(options.getLaunchRootTask())
|
||||
.setPendingIntentBackgroundActivityStartMode(
|
||||
options.getPendingIntentBackgroundActivityStartMode())
|
||||
.setIgnorePendingIntentCreatorForegroundState(
|
||||
options.getIgnorePendingIntentCreatorForegroundState());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user