Merge "Don't cancel passkey entry pairing autonomously" into tm-d1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
221c09d8df
@@ -86,10 +86,14 @@ public class BluetoothPairingDialogFragment extends InstrumentedDialogFragment i
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
if (mPairingController.getDialogType()
|
||||||
|
!= BluetoothPairingController.DISPLAY_PASSKEY_DIALOG) {
|
||||||
|
/* Cancel pairing unless explicitly accepted by user */
|
||||||
if (!mPositiveClicked) {
|
if (!mPositiveClicked) {
|
||||||
mPairingController.onCancel();
|
mPairingController.onCancel();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
|
||||||
|
Reference in New Issue
Block a user