From 2dbfe88397540dbfc47e5975a65709659a6f0467 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 5 May 2024 21:00:07 +0200 Subject: [PATCH] feat(StatusEditHistory): display subtitle on failed remote loading --- .../android/fragments/StatusEditHistoryFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusEditHistoryFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusEditHistoryFragment.java index 6a1dbe9e77..0e6bf1ac9f 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusEditHistoryFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/StatusEditHistoryFragment.java @@ -73,6 +73,7 @@ void loadRemoteData(List prevData){ if(parts.length==0||remoteURL==null) { onDataLoaded(prevData, false); + setSubtitle(getContext().getString(R.string.sk_no_remote_info_hint)); return; } @@ -89,6 +90,7 @@ public void onSuccess(List result){ public void onError(ErrorResponse errorResponse){ //fallback to previously loaded data onDataLoaded(prevData, false); + setSubtitle(getContext().getString(R.string.sk_no_remote_info_hint)); } }) .execNoAuth(remoteURL);