fix crash for non-github/debug builds

This commit is contained in:
sk 2023-11-15 18:47:07 +01:00
parent 66f8cc5d18
commit 327aef0271
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class SettingsAboutAppFragment extends BaseSettingsFragment<Void>{
@Override
protected void onHidden(){
super.onHidden();
GlobalUserPreferences.enablePreReleases=enablePreReleasesItem.checked;
GlobalUserPreferences.enablePreReleases=enablePreReleasesItem!=null && enablePreReleasesItem.checked;
GlobalUserPreferences.save();
if(timelineCacheCleared) getActivity().recreate();
}