Merge "Add FLAG_IMMUTABLE to PendingIntents" am: a3aa817aa5 am: b119c3792c am: fc609be986
Original change: https://android-review.googlesource.com/c/platform/development/+/2229375 Change-Id: I3e9728301a903e8bfc687c01fd815f5999e0d287 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -299,7 +299,7 @@ public class SyncAdapterDriver extends Activity
|
||||
intent.putExtra(Intent.EXTRA_CLIENT_LABEL,
|
||||
com.android.internal.R.string.sync_binding_label);
|
||||
intent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
|
||||
this, 0, new Intent(Settings.ACTION_SYNC_SETTINGS), 0));
|
||||
this, 0, new Intent(Settings.ACTION_SYNC_SETTINGS), PendingIntent.FLAG_IMMUTABLE));
|
||||
if (!bindService(intent, mActiveServiceConnection, Context.BIND_AUTO_CREATE)) {
|
||||
mBoundAdapterTextView.setText(getString(R.string.binding_bind_failed));
|
||||
mActiveServiceConnection = null;
|
||||
|
||||
@@ -137,7 +137,7 @@ public class WalkieTalkieActivity extends Activity implements View.OnTouchListen
|
||||
|
||||
Intent i = new Intent();
|
||||
i.setAction("android.SipDemo.INCOMING_CALL");
|
||||
PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, Intent.FILL_IN_DATA);
|
||||
PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, Intent.FILL_IN_DATA | PendingIntent.FLAG_IMMUTABLE);
|
||||
manager.open(me, pi, null);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user