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

Commit 24d579f5 authored by Nancy Chen's avatar Nancy Chen
Browse files

Read unread count in tabs with context in Talkback mode.

Read the unread count as "x unread items" in the tab title.

Bug: 25122434
Change-Id: I1acbebdae979c7ef6c177713ccbe59af6e16a949
parent e5e2c741
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 {