summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorJake Hamby <jhamby@google.com>2010-12-03 17:02:02 -0800
committerJean-Baptiste Queru <jbq@google.com>2010-12-09 07:50:04 -0800
commitc681e939dd6df2cdb39ab8a0edb4eb7027d33f13 (patch)
treedd32f64e25d52348d86b8af209f21910d787e4a1 /src/com/android
parent5c205262460ecc5bcfb92ffb10185a573a4b7c90 (diff)
downloadpackages_apps_settings-c681e939dd6df2cdb39ab8a0edb4eb7027d33f13.zip
packages_apps_settings-c681e939dd6df2cdb39ab8a0edb4eb7027d33f13.tar.gz
packages_apps_settings-c681e939dd6df2cdb39ab8a0edb4eb7027d33f13.tar.bz2
Reduce max BT device length to 246 bytes due to Bluez bug. (DO NOT MERGE)
The maximum Bluetooth device name length is 248 bytes. There are bugs in Bluez and D-Bus that can cause the Bluetooth service to go into a reboot loop when the device name is set to the maximum length. Changed Settings app to limit the device name length to 246 bytes. Bug: 3246147 Change-Id: I2f46303cf44951f0b3907c43d4b096736f08765b
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/settings/bluetooth/BluetoothNamePreference.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothNamePreference.java b/src/com/android/settings/bluetooth/BluetoothNamePreference.java
index c99ab4c..ad425fc 100644
--- a/src/com/android/settings/bluetooth/BluetoothNamePreference.java
+++ b/src/com/android/settings/bluetooth/BluetoothNamePreference.java
@@ -40,7 +40,8 @@ import android.widget.EditText;
*/
public class BluetoothNamePreference extends EditTextPreference implements TextWatcher {
private static final String TAG = "BluetoothNamePreference";
- private static final int BLUETOOTH_NAME_MAX_LENGTH_BYTES = 248;
+ // max. length reduced from 248 to 246 bytes to work around Bluez bug
+ private static final int BLUETOOTH_NAME_MAX_LENGTH_BYTES = 246;
private LocalBluetoothManager mLocalManager;