diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java index 4eb709099..6d62d9438 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java @@ -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(); diff --git a/mastodon/src/main/res/values/strings_sk.xml b/mastodon/src/main/res/values/strings_sk.xml index 1011dc6b7..b385de830 100644 --- a/mastodon/src/main/res/values/strings_sk.xml +++ b/mastodon/src/main/res/values/strings_sk.xml @@ -89,4 +89,5 @@ Reblog with visibility Post about this Hashtags you follow + Get changelog \ No newline at end of file