This commit is contained in:
M66B 2022-06-13 14:33:30 +02:00
parent 0c975325cf
commit 072fa35153
9 changed files with 9 additions and 9 deletions

View File

@ -519,7 +519,7 @@ public class FragmentOptionsBehavior extends FragmentBase implements SharedPrefe
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -390,7 +390,7 @@ public class FragmentOptionsConnection extends FragmentBase implements SharedPre
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -1313,7 +1313,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -596,7 +596,7 @@ public class FragmentOptionsEncryption extends FragmentBase
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -1661,7 +1661,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -648,7 +648,7 @@ public class FragmentOptionsNotifications extends FragmentBase implements Shared
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
boolean pro = ActivityBilling.isPro(getContext());

View File

@ -538,7 +538,7 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -631,7 +631,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

View File

@ -555,7 +555,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
}
private void setOptions() {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
if (getContext() == null)
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());