Merge "Explictly Grant Background Activity Launch permission."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7960b2066d
@@ -3154,8 +3154,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
|
||||
}
|
||||
}
|
||||
|
||||
final ActivityOptions clientOptions = ActivityOptions.makeBasic();
|
||||
clientOptions.setIgnorePendingIntentCreatorForegroundState(true);
|
||||
final ActivityOptions clientOptions = ActivityOptions.makeBasic()
|
||||
.setPendingIntentCreatorBackgroundActivityStartMode(
|
||||
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_DENIED);
|
||||
PendingIntent clientIntent = PendingIntent.getActivityAsUser(
|
||||
mContext, 0, Intent.createChooser(
|
||||
new Intent(Intent.ACTION_SET_WALLPAPER),
|
||||
|
||||
Reference in New Issue
Block a user