DO NOT MERGE Fix unexpected behavior in Bluetooth pairing
* Set default PBAP permission to false * Remove all newline and tab characters in Bluetooth device name Bug: 72872376 Bug: 73173182 Test: manual Change-Id: Ib3b99017c8da01446ce6302d43dcfb1ef8fba02c
This commit is contained in:
@@ -30,6 +30,7 @@ import android.text.InputFilter;
|
||||
import android.text.InputFilter.LengthFilter;
|
||||
import android.text.InputType;
|
||||
import android.text.TextWatcher;
|
||||
import android.util.EventLog;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
@@ -203,8 +204,9 @@ public final class BluetoothPairingDialog extends AlertActivity implements
|
||||
} else {
|
||||
if (mDevice.getBluetoothClass().getDeviceClass()
|
||||
== BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) {
|
||||
contactSharing.setChecked(true);
|
||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED);
|
||||
contactSharing.setChecked(false);
|
||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
||||
EventLog.writeEvent(0x534e4554, "73173182", -1, "");
|
||||
} else {
|
||||
contactSharing.setChecked(false);
|
||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
||||
|
Reference in New Issue
Block a user