From 769293ce1af90fd5c6ecf411017302e4b8ab7b3b Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Sat, 10 Dec 2022 09:56:53 -0300 Subject: [PATCH] Changing translate icon --- .../android/ui/displayitems/TextStatusDisplayItem.java | 4 ++-- mastodon/src/main/res/drawable/ic_translate_off.xml | 2 +- mastodon/src/main/res/drawable/ic_translate_on.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java index 274b805112..4b332f39f9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/TextStatusDisplayItem.java @@ -74,7 +74,6 @@ public static class Holder extends StatusDisplayItem.Holderitem.parentFragment.onRevealSpoilerClick(this)); @@ -108,6 +106,8 @@ public void onSuccess(StatusTranslation status){ } @Override public void onError(ErrorResponse error){ + item.status.wantsTranslation=false; + text.setText(item.text); error.showToast(item.parentFragment.getActivity()); } diff --git a/mastodon/src/main/res/drawable/ic_translate_off.xml b/mastodon/src/main/res/drawable/ic_translate_off.xml index cbbe870e47..29e602d1ea 100644 --- a/mastodon/src/main/res/drawable/ic_translate_off.xml +++ b/mastodon/src/main/res/drawable/ic_translate_off.xml @@ -1,5 +1,5 @@ - + diff --git a/mastodon/src/main/res/drawable/ic_translate_on.xml b/mastodon/src/main/res/drawable/ic_translate_on.xml index 6104a72b3d..29e602d1ea 100644 --- a/mastodon/src/main/res/drawable/ic_translate_on.xml +++ b/mastodon/src/main/res/drawable/ic_translate_on.xml @@ -1,5 +1,5 @@ - +