Merge "Don't cancel passkey entry pairing autonomously" am: 059ab284e7
am: 7c6a004452
am: 99bbb571f3
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2159779 Change-Id: I7e51117d355b763c0f3d299864cb40dabed90c4c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -86,8 +86,12 @@ public class BluetoothPairingDialogFragment extends InstrumentedDialogFragment i
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
if (!mPositiveClicked) {
|
if (mPairingController.getDialogType()
|
||||||
mPairingController.onCancel();
|
!= BluetoothPairingController.DISPLAY_PASSKEY_DIALOG) {
|
||||||
|
/* Cancel pairing unless explicitly accepted by user */
|
||||||
|
if (!mPositiveClicked) {
|
||||||
|
mPairingController.onCancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user