From 6fe466779e3614c17ba726cb29a0e34e9df1fe5b Mon Sep 17 00:00:00 2001 From: sk Date: Fri, 4 Nov 2022 03:33:41 +0100 Subject: [PATCH] add toash message --- .../org/joinmastodon/android/fragments/SettingsFragment.java | 4 ++++ mastodon/src/main/res/values-de-rDE/strings.xml | 3 ++- mastodon/src/main/res/values/strings.xml | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) 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 843c98346..6c3c01116 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java @@ -348,6 +348,10 @@ public class SettingsFragment extends MastodonToolbarFragment{ if(updateItem != null && list.findViewHolderForAdapterPosition(0) instanceof UpdateViewHolder uvh){ uvh.bind(updateItem); } + + if (ev.state == GithubSelfUpdater.UpdateState.NO_UPDATE) { + Toast.makeText(getActivity(), R.string.no_update_available, Toast.LENGTH_SHORT).show(); + } } private static abstract class Item{ diff --git a/mastodon/src/main/res/values-de-rDE/strings.xml b/mastodon/src/main/res/values-de-rDE/strings.xml index 2f8c13b9e..19cd4c1e7 100644 --- a/mastodon/src/main/res/values-de-rDE/strings.xml +++ b/mastodon/src/main/res/values-de-rDE/strings.xml @@ -377,5 +377,6 @@ Download (%s) Installieren - Auf Update prüfen + Auf Update prüfen + Kein Update verfügbar diff --git a/mastodon/src/main/res/values/strings.xml b/mastodon/src/main/res/values/strings.xml index 9cc98cba2..74425cc57 100644 --- a/mastodon/src/main/res/values/strings.xml +++ b/mastodon/src/main/res/values/strings.xml @@ -385,6 +385,7 @@ Download (%s) Install Check for update + No update available Mastodon and your privacy Although the Mastodon app does not collect any data, the server you sign up through may have a different policy. Take a minute to review and agree to the Mastodon app privacy policy and your server\'s privacy policy. I Agree