Merge "Don't cancel passkey entry pairing autonomously"
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