diff options
author | PauloftheWest <paulofthewest@google.com> | 2014-08-08 08:36:26 -0700 |
---|---|---|
committer | PauloftheWest <paulofthewest@google.com> | 2014-08-08 09:34:15 -0700 |
commit | ed7b44d83ded493c089b2f22850a3d48d5e7e609 (patch) | |
tree | ab3162e3f5e6a360bf54c2d025409c9c5856845a /src/com/android/settings/bluetooth/BluetoothSettings.java | |
parent | b5fca45768d36552ce74785dfbc9d7da7ce67bea (diff) | |
download | packages_apps_Settings-ed7b44d83ded493c089b2f22850a3d48d5e7e609.zip packages_apps_Settings-ed7b44d83ded493c089b2f22850a3d48d5e7e609.tar.gz packages_apps_Settings-ed7b44d83ded493c089b2f22850a3d48d5e7e609.tar.bz2 |
Fixed Bluetooth renaming bug.
+ After renaming your Bluetooth device, the title of the Bluetooth
Activity stays "Bluetooth" instead of changing to the new name.
+ After renaming the device, the status at the bottom Bluetooth Settings
is correctly displayed.
Bug: 16463239
Change-Id: Ifb12df2004fe1f89bd6f918e23c2c64ae08a0191
Diffstat (limited to 'src/com/android/settings/bluetooth/BluetoothSettings.java')
-rwxr-xr-x | src/com/android/settings/bluetooth/BluetoothSettings.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothSettings.java b/src/com/android/settings/bluetooth/BluetoothSettings.java index 7441c8c..4b278ac 100755 --- a/src/com/android/settings/bluetooth/BluetoothSettings.java +++ b/src/com/android/settings/bluetooth/BluetoothSettings.java @@ -99,13 +99,14 @@ public final class BluetoothSettings extends DeviceListPreferenceFragment implem public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED)) { - updateDeviceName(); + updateDeviceName(context); } } - private void updateDeviceName() { + private void updateDeviceName(Context context) { if (mLocalAdapter.isEnabled() && mMyDevicePreference != null) { - mMyDevicePreference.setTitle(mLocalAdapter.getName()); + mMyDevicePreference.setSummary(context.getResources().getString( + R.string.bluetooth_is_visible_message, mLocalAdapter.getName())); } } }; |