change profile loading error behavior
This commit is contained in:
parent
71884ab760
commit
fa7a66809d
|
@ -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")));
|
||||
|
|
|
@ -294,6 +294,6 @@
|
|||
<string name="sk_settings_content_types_explanation">Dadurch lässt beim Erstellen von Beiträgen ein Inhaltstyp wie Markdown angeben. Nicht alle Instanzen unterstützen das.</string>
|
||||
<string name="sk_settings_allow_remote_loading">Infos von Remote-Instanzen laden</string>
|
||||
<string name="sk_no_remote_info_hint">keine Remote-Infos abrufbar</string>
|
||||
<string name="sk_error_loading_profile">Konnte das Profil auf deiner Heim-Instanz nicht laden.</string>
|
||||
<string name="sk_error_loading_profile">Konnte das Profil via %s nicht laden</string>
|
||||
<string name="sk_settings_allow_remote_loading_explanation">Für vollständigere Auflistung von Follower*innen, Likes und Boosts können die Informationen von der Ursprungs-Instanz geladen werden.</string>
|
||||
</resources>
|
|
@ -294,7 +294,7 @@
|
|||
<string name="sk_external_share_title">Share with account</string>
|
||||
<string name="sk_external_share_or_open_title">Share or open with account</string>
|
||||
<string name="sk_no_remote_info_hint">remote info unavailable</string>
|
||||
<string name="sk_error_loading_profile">Failed loading the profile on your home instance.</string>
|
||||
<string name="sk_error_loading_profile">Failed loading the profile via %s</string>
|
||||
<string name="sk_settings_allow_remote_loading">Load info from remote instances</string>
|
||||
<string name="sk_settings_allow_remote_loading_explanation">Try fetching more accurate listings for followers, likes and boosts by loading the information from the instance of origin.</string>
|
||||
</resources>
|
Loading…
Reference in New Issue