Log whether BT pairing dialog is accepted or canceled

Change-Id: I584cef273f16e27cd7e569b53abccedfe0bd0af7
This commit is contained in:
Christine Hallstrom
2016-06-22 15:46:35 -07:00
committed by Andre Eisenbach
parent f0c929017f
commit ac47013154

View File

@@ -387,6 +387,7 @@ public final class BluetoothPairingDialog extends AlertActivity implements
} }
private void onPair(String value) { private void onPair(String value) {
Log.i(TAG, "Pairing dialog accepted");
switch (mType) { switch (mType) {
case BluetoothDevice.PAIRING_VARIANT_PIN: case BluetoothDevice.PAIRING_VARIANT_PIN:
case BluetoothDevice.PAIRING_VARIANT_PIN_16_DIGITS: case BluetoothDevice.PAIRING_VARIANT_PIN_16_DIGITS:
@@ -422,6 +423,7 @@ public final class BluetoothPairingDialog extends AlertActivity implements
} }
private void onCancel() { private void onCancel() {
Log.i(TAG, "Pairing dialog canceled");
mDevice.cancelPairingUserInput(); mDevice.cancelPairingUserInput();
} }