Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6211694d authored by Nancy Chen's avatar Nancy Chen Committed by Android (Google) Code Review
Browse files

Merge "Read unread count in tabs with context in Talkback mode." into ub-contactsdialer-a-dev

parents 9c375539 24d579f5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -184,8 +184,14 @@ public class ViewPagerTabs extends HorizontalScrollView implements ViewPager.OnP
            if (mUnreadCounts != null && mUnreadCounts[position] > 0) {
                textView.setText(Integer.toString(mUnreadCounts[position]));
                textView.setVisibility(View.VISIBLE);
                iconView.setContentDescription(getResources().getQuantityString(
                        R.plurals.tab_title_with_unread_items,
                        mUnreadCounts[position],
                        tabTitle.toString(),
                        mUnreadCounts[position]));
            } else {
                textView.setVisibility(View.INVISIBLE);
                iconView.setContentDescription(tabTitle);
            }
            tabView = layout;
        } else {