Skip to content

Commit

Permalink
feat(Settings/About): hide pre-release option in nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Aug 1, 2024
1 parent f1d40f8 commit 4447370
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void onCreate(Bundle savedInstanceState){
copyCrashLogItem=new ListItem<>(getString(R.string.sk_settings_copy_crash_log), lastModified, 0, this::onCopyCrashLog)
));

if(GithubSelfUpdater.needSelfUpdating()){
if(GithubSelfUpdater.needSelfUpdating() && !BuildConfig.BUILD_TYPE.equals("nightly") ){
items.add(enablePreReleasesItem=new CheckableListItem<>(R.string.sk_updater_enable_pre_releases, 0, CheckableListItem.Style.SWITCH, GlobalUserPreferences.enablePreReleases, i->toggleCheckableItem(enablePreReleasesItem)));
}

Expand Down

0 comments on commit 4447370

Please sign in to comment.