Merge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into cw-f-dev
* changes: [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am:4f58c19afa
am:e25ebddfdc
am:ee220e0238
[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am:4f58c19afa
am:e25ebddfdc
[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am:4f58c19afa
DO NOT MERGE Fix unexpected behavior in Bluetooth pairing
This commit is contained in:
committed by
Android (Google) Code Review
commit
70643c1bf4
@@ -30,6 +30,7 @@ import android.text.InputFilter;
|
|||||||
import android.text.InputFilter.LengthFilter;
|
import android.text.InputFilter.LengthFilter;
|
||||||
import android.text.InputType;
|
import android.text.InputType;
|
||||||
import android.text.TextWatcher;
|
import android.text.TextWatcher;
|
||||||
|
import android.util.EventLog;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@@ -203,8 +204,9 @@ public final class BluetoothPairingDialog extends AlertActivity implements
|
|||||||
} else {
|
} else {
|
||||||
if (mDevice.getBluetoothClass().getDeviceClass()
|
if (mDevice.getBluetoothClass().getDeviceClass()
|
||||||
== BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) {
|
== BluetoothClass.Device.AUDIO_VIDEO_HANDSFREE) {
|
||||||
contactSharing.setChecked(true);
|
contactSharing.setChecked(false);
|
||||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED);
|
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
||||||
|
EventLog.writeEvent(0x534e4554, "73173182", -1, "");
|
||||||
} else {
|
} else {
|
||||||
contactSharing.setChecked(false);
|
contactSharing.setChecked(false);
|
||||||
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
|
||||||
|
@@ -24,6 +24,7 @@ import android.content.Intent;
|
|||||||
import android.content.IntentFilter;
|
import android.content.IntentFilter;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v7.preference.Preference;
|
import android.support.v7.preference.Preference;
|
||||||
|
import android.util.EventLog;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
@@ -154,7 +155,11 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
|||||||
String mRemoteName = mDevice != null ? mDevice.getAliasName() : null;
|
String mRemoteName = mDevice != null ? mDevice.getAliasName() : null;
|
||||||
|
|
||||||
if (mRemoteName == null) mRemoteName = getString(R.string.unknown);
|
if (mRemoteName == null) mRemoteName = getString(R.string.unknown);
|
||||||
return mRemoteName;
|
String nameNoNewline = mRemoteName.replaceAll("[\\t\\n\\r]+", " ");
|
||||||
|
if (!mRemoteName.equals(nameNoNewline)) {
|
||||||
|
EventLog.writeEvent(0x534e4554, "72872376", -1, "");
|
||||||
|
}
|
||||||
|
return nameNoNewline;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(edjee): createConnectionDialogView, createPhonebookDialogView and createMapDialogView
|
// TODO(edjee): createConnectionDialogView, createPhonebookDialogView and createMapDialogView
|
||||||
|
Reference in New Issue
Block a user