From 2b2e4845a1a1f555b65b386a5a7e0e6d35bad2ba Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sun, 25 Dec 2022 14:21:09 -0300 Subject: [PATCH] Revert "Its some steps done" This reverts commit d66a4c0920860b7bae20002b2a55651e6bdc82af. --- .../joinmastodon/android/fragments/SettingsFragment.java | 6 +----- mastodon/src/main/res/values/strings_sk.xml | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) 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 6d62d9438..4eb709099 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.sk_get_changelog, this::onGetChangelogClick)); + items.add(new TextItem(R.string.get_changelog, GithubSelfUpdater.getInstance()::getChangelog); 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,10 +266,6 @@ 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 b385de830..1011dc6b7 100644 --- a/mastodon/src/main/res/values/strings_sk.xml +++ b/mastodon/src/main/res/values/strings_sk.xml @@ -89,5 +89,4 @@ Reblog with visibility Post about this Hashtags you follow - Get changelog \ No newline at end of file