mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-21 00:13:41 +02:00
Nav toolip texts
This commit is contained in:
@@ -175,6 +175,7 @@ public class AdapterNavAccountFolder extends RecyclerView.Adapter<AdapterNavAcco
|
||||
tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
|
||||
tvItem.setVisibility(expanded ? View.VISIBLE : View.GONE);
|
||||
|
||||
ivItem.setTooltipText(tvItem.getText());
|
||||
ivItem.setContentDescription(tvItem.getText());
|
||||
ivItem.setImportantForAccessibility(expanded ? IMPORTANT_FOR_ACCESSIBILITY_NO : IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@ public class AdapterNavMenu extends RecyclerView.Adapter<AdapterNavMenu.ViewHold
|
||||
tvItem.setTypeface(count == null ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
|
||||
tvItem.setVisibility(expanded ? View.VISIBLE : View.GONE);
|
||||
|
||||
ivItem.setTooltipText(tvItem.getText());
|
||||
ivItem.setContentDescription(tvItem.getText());
|
||||
ivItem.setImportantForAccessibility(expanded ? IMPORTANT_FOR_ACCESSIBILITY_NO : IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
|
||||
|
||||
@@ -96,6 +96,7 @@ public class AdapterNavSearch extends RecyclerView.Adapter<AdapterNavSearch.View
|
||||
tvCount.setVisibility(View.GONE);
|
||||
tvItem.setText(search.name);
|
||||
|
||||
ivItem.setTooltipText(tvItem.getText());
|
||||
ivItem.setContentDescription(tvItem.getText());
|
||||
ivItem.setImportantForAccessibility(expanded ? IMPORTANT_FOR_ACCESSIBILITY_NO : IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
|
||||
|
||||
@@ -158,6 +158,7 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
|
||||
tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
|
||||
tvItem.setVisibility(expanded ? View.VISIBLE : View.GONE);
|
||||
|
||||
ivItem.setTooltipText(tvItem.getText());
|
||||
ivItem.setContentDescription(tvItem.getText());
|
||||
ivItem.setImportantForAccessibility(expanded ? IMPORTANT_FOR_ACCESSIBILITY_NO : IMPORTANT_FOR_ACCESSIBILITY_YES);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user