Fix back button on fragments without help uris

This is a follow up to 0708d9e119. The setHasOptionsMenu has
to be set for the back button to work and this needs to happen
regardles if the fragment has an help uri or not.

Bug: 28237921
Change-Id: Icec7a94312bdab5470efa0893a339d753c995eb1
This commit is contained in:
Johan Redestig
2016-04-19 08:29:30 +02:00
committed by Udam Saini
parent c3ab03ecdb
commit 76218e54ae

View File

@@ -187,10 +187,8 @@ public abstract class SettingsPreferenceFragment extends InstrumentedPreferenceF
@Override @Override
public void onActivityCreated(Bundle savedInstanceState) { public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState); super.onActivityCreated(savedInstanceState);
if (!TextUtils.isEmpty(mHelpUri)) {
setHasOptionsMenu(true); setHasOptionsMenu(true);
} }
}
@Override @Override
public void onResume() { public void onResume() {