Merge "Settings: [BT] Wrong Pairing Popup is shown on new pairing request." into qt-dev

This commit is contained in:
Lei Yu
2019-04-08 21:28:09 +00:00
committed by Android (Google) Code Review

View File

@@ -124,7 +124,8 @@ public final class BluetoothPairingService extends Service {
.setLocalOnly(true);
PendingIntent pairIntent = PendingIntent.getActivity(this, 0,
getPairingDialogIntent(this, intent), PendingIntent.FLAG_ONE_SHOT);
getPairingDialogIntent(this, intent),
PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent dismissIntent = PendingIntent.getBroadcast(this, 0,
new Intent(ACTION_DISMISS_PAIRING), PendingIntent.FLAG_ONE_SHOT);