Display translate icon only when language is different

This commit is contained in:
Thomas 2022-12-20 09:53:34 +01:00
parent d7a2a6b855
commit 611c22a5c8
2 changed files with 8 additions and 1 deletions

View File

@ -630,7 +630,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
holder.binding.actionButtonBookmark.setVisibility(View.GONE);
}
if (displayTranslate) {
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);
}

View File

@ -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