Merge "Don't cancel passkey entry pairing autonomously"

This commit is contained in:
Himanshu Rawat
2022-07-26 02:00:52 +00:00
committed by Gerrit Code Review

View File

@@ -86,10 +86,14 @@ public class BluetoothPairingDialogFragment extends InstrumentedDialogFragment i
@Override
public void onDestroy() {
super.onDestroy();
if (mPairingController.getDialogType()
!= BluetoothPairingController.DISPLAY_PASSKEY_DIALOG) {
/* Cancel pairing unless explicitly accepted by user */
if (!mPositiveClicked) {
mPairingController.onCancel();
}
}
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {