Its some steps done

This commit is contained in:
LucasGGamerM 2022-12-25 11:11:30 -03:00
parent e8a31cf867
commit d66a4c0920
2 changed files with 6 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class SettingsFragment extends MastodonToolbarFragment{
items.add(checkForUpdateItem);
}
// TODO fix this up tomorrow, by probably just making another method for chacking and displaying the new changelog
items.add(new TextItem(R.string.get_changelog, GithubSelfUpdater.getInstance()::getChangelog);
items.add(new TextItem(R.string.sk_get_changelog, this::onGetChangelogClick));
items.add(new TextItem(R.string.sk_settings_contribute, ()->UiUtils.launchWebBrowser(getActivity(), "https://github.com/LucasGGamerM/moshidon")));
items.add(new TextItem(R.string.settings_clear_cache, this::clearImageCache));
@ -266,6 +266,10 @@ public class SettingsFragment extends MastodonToolbarFragment{
E.unregister(this);
}
private void onGetChangelogClick(){
GithubSelfUpdater.getInstance().getChangelog();
}
private void onThemePreferenceClick(GlobalUserPreferences.ThemePreference theme){
GlobalUserPreferences.theme=theme;
GlobalUserPreferences.save();

View File

@ -89,4 +89,5 @@
<string name="sk_reblog_with_visibility">Reblog with visibility</string>
<string name="sk_quote_post">Post about this</string>
<string name="sk_hashtags_you_follow">Hashtags you follow</string>
<string name="sk_get_changelog">Get changelog</string>
</resources>