Merge "Don't cancel passkey entry pairing autonomously" am: 059ab284e7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2159779 Change-Id: I7680942ca7ac5da3799b10306b1a3849800a1f4f 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
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (!mPositiveClicked) {
|
||||
mPairingController.onCancel();
|
||||
if (mPairingController.getDialogType()
|
||||
!= BluetoothPairingController.DISPLAY_PASSKEY_DIALOG) {
|
||||
/* Cancel pairing unless explicitly accepted by user */
|
||||
if (!mPositiveClicked) {
|
||||
mPairingController.onCancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user