diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java index 13f82ed7..a6c1990c 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/StatusAdapter.java @@ -630,7 +630,11 @@ public class StatusAdapter extends RecyclerView.Adapter holder.binding.actionButtonBookmark.setVisibility(View.GONE); } if (displayTranslate) { - holder.binding.actionButtonTranslate.setVisibility(View.VISIBLE); + if (statusToDeal.language != null && statusToDeal.language.trim().length() > 0 && statusToDeal.language.equalsIgnoreCase(MyTransL.getLocale())) { + holder.binding.actionButtonTranslate.setVisibility(View.GONE); + } else { + holder.binding.actionButtonTranslate.setVisibility(View.VISIBLE); + } } else { holder.binding.actionButtonTranslate.setVisibility(View.GONE); } diff --git a/src/fdroid/fastlane/metadata/android/en/changelogs/451.txt b/src/fdroid/fastlane/metadata/android/en/changelogs/451.txt index 92629740..d748e4ab 100644 --- a/src/fdroid/fastlane/metadata/android/en/changelogs/451.txt +++ b/src/fdroid/fastlane/metadata/android/en/changelogs/451.txt @@ -1,6 +1,9 @@ Added: - Post random quotes +Changed: +- Display translate button only when language is different + Fixed: - Behavior with cw toggle - Truncated gimini links \ No newline at end of file