Polish print settings accessibility.
bug:10983508 Change-Id: I986e28a2cd8e52b7c8422e825de9174d6e2377c3
This commit is contained in:
@@ -48,10 +48,6 @@ public abstract class ToggleFeaturePreferenceFragment
|
||||
protected CharSequence mSettingsTitle;
|
||||
protected Intent mSettingsIntent;
|
||||
|
||||
// TODO: Showing sub-sub fragment does not handle the activity title
|
||||
// so we do it but this is wrong. Do a real fix when there is time.
|
||||
private CharSequence mOldActivityTitle;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
@@ -100,9 +96,6 @@ public abstract class ToggleFeaturePreferenceFragment
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
getActivity().getActionBar().setCustomView(null);
|
||||
if (mOldActivityTitle != null) {
|
||||
getActivity().getActionBar().setTitle(mOldActivityTitle);
|
||||
}
|
||||
mToggleSwitch.setOnBeforeCheckedChangeListener(null);
|
||||
super.onDestroyView();
|
||||
}
|
||||
@@ -144,9 +137,8 @@ public abstract class ToggleFeaturePreferenceFragment
|
||||
// Title.
|
||||
PreferenceActivity activity = (PreferenceActivity) getActivity();
|
||||
if (!activity.onIsMultiPane() || activity.onIsHidingHeaders()) {
|
||||
mOldActivityTitle = getActivity().getTitle();
|
||||
String title = arguments.getString(AccessibilitySettings.EXTRA_TITLE);
|
||||
getActivity().getActionBar().setTitle(title);
|
||||
getActivity().setTitle(title);
|
||||
}
|
||||
// Summary.
|
||||
CharSequence summary = arguments.getCharSequence(AccessibilitySettings.EXTRA_SUMMARY);
|
||||
|
Reference in New Issue
Block a user