Skip to content

Commit

Permalink
fix crash for non-github/debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sk22 committed Nov 15, 2023
1 parent 66f8cc5 commit 327aef0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void onCreate(Bundle savedInstanceState){
@Override
protected void onHidden(){
super.onHidden();
GlobalUserPreferences.enablePreReleases=enablePreReleasesItem.checked;
GlobalUserPreferences.enablePreReleases=enablePreReleasesItem!=null && enablePreReleasesItem.checked;
GlobalUserPreferences.save();
if(timelineCacheCleared) getActivity().recreate();
}
Expand Down

0 comments on commit 327aef0

Please sign in to comment.