From fa7a66809dc919628e5d1af1d03c71e4ed7f65cb Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 7 Jun 2023 16:09:41 +0200 Subject: [PATCH] change profile loading error behavior --- .../joinmastodon/android/fragments/ProfileFragment.java | 8 ++++---- mastodon/src/main/res/values-de-rDE/strings_sk.xml | 2 +- mastodon/src/main/res/values/strings_sk.xml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 9f1c95296..c637429e3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -384,10 +384,10 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList UiUtils.lookupAccountHandle(getContext(), accountID, remoteAccount.getFullyQualifiedName(), (c, args) -> { if (getContext() == null) return; if (args == null || !args.containsKey("profileAccount")) { - onError(new MastodonErrorResponse( - getContext().getString(R.string.sk_error_loading_profile), - 0, null - )); + Toast.makeText(getContext(), getContext().getString( + R.string.sk_error_loading_profile, domain + ), Toast.LENGTH_SHORT).show(); + Nav.finish(this); return; } onAccountLoaded(Parcels.unwrap(args.getParcelable("profileAccount"))); diff --git a/mastodon/src/main/res/values-de-rDE/strings_sk.xml b/mastodon/src/main/res/values-de-rDE/strings_sk.xml index 4e972f161..9d2cdcad6 100644 --- a/mastodon/src/main/res/values-de-rDE/strings_sk.xml +++ b/mastodon/src/main/res/values-de-rDE/strings_sk.xml @@ -294,6 +294,6 @@ Dadurch lässt beim Erstellen von Beiträgen ein Inhaltstyp wie Markdown angeben. Nicht alle Instanzen unterstützen das. Infos von Remote-Instanzen laden keine Remote-Infos abrufbar - Konnte das Profil auf deiner Heim-Instanz nicht laden. + Konnte das Profil via %s nicht laden Für vollständigere Auflistung von Follower*innen, Likes und Boosts können die Informationen von der Ursprungs-Instanz geladen werden. \ No newline at end of file diff --git a/mastodon/src/main/res/values/strings_sk.xml b/mastodon/src/main/res/values/strings_sk.xml index 221baaac9..40dd203a8 100644 --- a/mastodon/src/main/res/values/strings_sk.xml +++ b/mastodon/src/main/res/values/strings_sk.xml @@ -294,7 +294,7 @@ Share with account Share or open with account remote info unavailable - Failed loading the profile on your home instance. + Failed loading the profile via %s Load info from remote instances Try fetching more accurate listings for followers, likes and boosts by loading the information from the instance of origin. \ No newline at end of file