Prevent crash

This commit is contained in:
M66B
2022-06-24 22:53:26 +02:00
parent fe6686dda2
commit abeae50ccc
9 changed files with 24 additions and 0 deletions

View File

@@ -531,6 +531,8 @@ public class FragmentOptionsPrivacy extends FragmentBase implements SharedPrefer
private void setOptions() {
if (getContext() == null)
return;
if (getLifecycle().getCurrentState().equals(Lifecycle.State.DESTROYED))
return;
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());