Nav toolip texts

This commit is contained in:
M66B
2025-03-25 07:45:59 +01:00
parent 6486c84b53
commit b368671a5e
4 changed files with 4 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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