This commit is contained in:
Grishka 2023-09-12 06:05:45 +03:00
parent 1b4dc01c74
commit 209e603f2c
1 changed files with 5 additions and 0 deletions

View File

@ -597,6 +597,11 @@ public abstract class BaseStatusListFragment<T extends DisplayItemsParent> exten
public void onError(ErrorResponse error){
if(getActivity()==null)
return;
status.translationState=Status.TranslationState.HIDDEN;
TextStatusDisplayItem.Holder text=findHolderOfType(itemID, TextStatusDisplayItem.Holder.class);
if(text!=null){
text.updateTranslation(true);
}
new M3AlertDialogBuilder(getActivity())
.setTitle(R.string.error)
.setMessage(R.string.translation_failed)