mirror of
https://codeberg.org/tom79/Fedilab
synced 2025-02-01 20:07:12 +01:00
Display translate icon only when language is different
This commit is contained in:
parent
d7a2a6b855
commit
611c22a5c8
@ -630,7 +630,11 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
||||
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);
|
||||
}
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user