|
|
|
@ -96,6 +96,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private boolean resumed = false;
|
|
|
|
|
private List<Pair<String, String>> languages = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
private View view;
|
|
|
|
|
private ImageButton ibHelp;
|
|
|
|
|
private SwitchCompat swPowerMenu;
|
|
|
|
|
private SwitchCompat swExternalSearch;
|
|
|
|
@ -277,7 +278,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
setSubtitle(R.string.title_setup);
|
|
|
|
|
setHasOptionsMenu(true);
|
|
|
|
|
|
|
|
|
|
View view = inflater.inflate(R.layout.fragment_options_misc, container, false);
|
|
|
|
|
view = inflater.inflate(R.layout.fragment_options_misc, container, false);
|
|
|
|
|
|
|
|
|
|
// Get controls
|
|
|
|
|
|
|
|
|
@ -1731,9 +1732,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void setOptions() {
|
|
|
|
|
if (getContext() == null)
|
|
|
|
|
return;
|
|
|
|
|
if (getLifecycle().getCurrentState().equals(Lifecycle.State.DESTROYED))
|
|
|
|
|
if (view == null || getContext() == null)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
|
|
|
|