summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/profiles
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-02-10 16:55:14 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-26 16:11:14 -0700
commitb3623e1c2acdeac4500dbe55fb0e1000f78d881c (patch)
treeee37c677fee686f63121ce809733b288fa37bf89 /src/com/android/settings/profiles
parent4bb7a97b0477d98d74d4ea7e769ccc201b4d4e5a (diff)
downloadpackages_apps_Settings-b3623e1c2acdeac4500dbe55fb0e1000f78d881c.zip
packages_apps_Settings-b3623e1c2acdeac4500dbe55fb0e1000f78d881c.tar.gz
packages_apps_Settings-b3623e1c2acdeac4500dbe55fb0e1000f78d881c.tar.bz2
Settings: set profile name as title when editing
Change-Id: I0f19adb0bc46a708dd7583735cf15c14c336e2c8 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r--src/com/android/settings/profiles/SetupActionsFragment.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/settings/profiles/SetupActionsFragment.java b/src/com/android/settings/profiles/SetupActionsFragment.java
index 2f5e14d..6eac9a4 100644
--- a/src/com/android/settings/profiles/SetupActionsFragment.java
+++ b/src/com/android/settings/profiles/SetupActionsFragment.java
@@ -282,9 +282,11 @@ public class SetupActionsFragment extends SettingsPreferenceFragment
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mListView.setAdapter(mAdapter);
- getActivity().getActionBar().setTitle(mNewProfileMode
- ? R.string.profile_setup_actions_title
- : R.string.profile_setup_actions_title_config);
+ if (mNewProfileMode) {
+ getActivity().getActionBar().setTitle(R.string.profile_setup_actions_title);
+ } else {
+ getActivity().getActionBar().setTitle(mProfile.getName());
+ }
}
private void requestFillProfileFromSettingsDialog() {