There are several painful issues with the initial CL. Doing a revert for now and will rework this.

Revert "Fix bug #12939786 BACK should go back into the Fragments BackStack and finally to Overview ...and then exit the Settings App"

This reverts commit 4cc95a53c2.

Change-Id: Iaa21d4771d0b004eff3d8e68b91b546a633d8f23
This commit is contained in:
Fabrice Di Meglio
2014-02-11 19:50:56 +00:00
parent 4cc95a53c2
commit 10afdb82ac
3 changed files with 152 additions and 125 deletions

View File

@@ -328,6 +328,14 @@ public class PrintServiceSettingsFragment extends SettingsPreferenceFragment
final boolean enabled = arguments.getBoolean(PrintSettingsFragment.EXTRA_CHECKED);
mToggleSwitch.setCheckedInternal(enabled);
// Title.
SettingsActivity activity = (SettingsActivity) getActivity();
if (!activity.onIsHidingHeaders()) {
mOldActivityTitle = getActivity().getTitle();
String title = arguments.getString(PrintSettingsFragment.EXTRA_TITLE);
getActivity().getActionBar().setTitle(title);
}
// Settings title and intent.
String settingsTitle = arguments.getString(PrintSettingsFragment.EXTRA_SETTINGS_TITLE);
String settingsComponentName = arguments.getString(