Skip to content

Commit

Permalink
feat(StatusEditHistory): display subtitle on failed remote loading
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed May 5, 2024
1 parent 7269788 commit 2dbfe88
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void loadRemoteData(List<Status> prevData){

if(parts.length==0||remoteURL==null) {
onDataLoaded(prevData, false);
setSubtitle(getContext().getString(R.string.sk_no_remote_info_hint));
return;
}

Expand All @@ -89,6 +90,7 @@ public void onSuccess(List<Status> 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);
Expand Down

0 comments on commit 2dbfe88

Please sign in to comment.