From b3623e1c2acdeac4500dbe55fb0e1000f78d881c Mon Sep 17 00:00:00 2001 From: Roman Birg Date: Tue, 10 Feb 2015 16:55:14 -0800 Subject: Settings: set profile name as title when editing Change-Id: I0f19adb0bc46a708dd7583735cf15c14c336e2c8 Signed-off-by: Roman Birg --- src/com/android/settings/profiles/SetupActionsFragment.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') 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() { -- cgit v1.1