feat(StatusEditHistory): display subtitle on failed remote loading

This commit is contained in:
FineFindus
2024-05-05 21:00:07 +02:00
parent 7269788831
commit 2dbfe88397

View File

@@ -73,6 +73,7 @@ public class StatusEditHistoryFragment extends StatusListFragment{
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 class StatusEditHistoryFragment extends StatusListFragment{
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);