diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2014-02-05 15:13:46 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2014-02-05 15:18:18 -0800 |
commit | 3b52963edf968fd007c86950086cce0a6ba31692 (patch) | |
tree | f37974515c9dd15eacb926b99d9148897c5ce983 /src/com/android/settings/bluetooth | |
parent | 0cff0e4a5169d3a41fdd324cfa2385df2ff3d33e (diff) | |
download | packages_apps_Settings-3b52963edf968fd007c86950086cce0a6ba31692.zip packages_apps_Settings-3b52963edf968fd007c86950086cce0a6ba31692.tar.gz packages_apps_Settings-3b52963edf968fd007c86950086cce0a6ba31692.tar.bz2 |
Fix bug #12898564 Settings Crash on Renaming the device.
- remove the call to PreferencesActivity as we are no more using the PreferencesActivity
Also set correct activity title with the new selected BT name for the device.
Change-Id: I03497187e0410ff2bba87bdb04a197938d1ea967
Diffstat (limited to 'src/com/android/settings/bluetooth')
-rw-r--r-- | src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java b/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java index 0af9c4e..bf0356c 100644 --- a/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java +++ b/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java @@ -26,7 +26,6 @@ import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.os.Bundle; -import android.preference.PreferenceActivity; import android.text.Editable; import android.text.InputFilter; import android.text.TextWatcher; @@ -179,9 +178,8 @@ public final class BluetoothNameDialogFragment extends DialogFragment implements mDeviceNameUpdated = true; mDeviceNameEdited = false; mDeviceNameView.setText(mLocalAdapter.getName()); + getActivity().setTitle(mLocalAdapter.getName()); } - PreferenceActivity activity = (PreferenceActivity)getActivity(); - activity.showBreadCrumbs(mLocalAdapter.getName(), ""); } public void afterTextChanged(Editable s) { |