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

@@ -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());