Merge "Add FLAG_IMMUTABLE to PendingIntents" am: a3aa817aa5 am: b119c3792c
Original change: https://android-review.googlesource.com/c/platform/development/+/2229375 Change-Id: I1d1b640193a1f9341214f3f6d59326e3ee992cb6 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,
|
intent.putExtra(Intent.EXTRA_CLIENT_LABEL,
|
||||||
com.android.internal.R.string.sync_binding_label);
|
com.android.internal.R.string.sync_binding_label);
|
||||||
intent.putExtra(Intent.EXTRA_CLIENT_INTENT, PendingIntent.getActivity(
|
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)) {
|
if (!bindService(intent, mActiveServiceConnection, Context.BIND_AUTO_CREATE)) {
|
||||||
mBoundAdapterTextView.setText(getString(R.string.binding_bind_failed));
|
mBoundAdapterTextView.setText(getString(R.string.binding_bind_failed));
|
||||||
mActiveServiceConnection = null;
|
mActiveServiceConnection = null;
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ public class WalkieTalkieActivity extends Activity implements View.OnTouchListen
|
|||||||
|
|
||||||
Intent i = new Intent();
|
Intent i = new Intent();
|
||||||
i.setAction("android.SipDemo.INCOMING_CALL");
|
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);
|
manager.open(me, pi, null);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user