From ea7c0b859a57a5c61c701bf0b710b44775f537c3 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Mon, 31 Aug 2015 17:18:41 -0700 Subject: Display unread count for voicemail and update when vm is read. Query for number of unread voicemails when dialer starts and update this number when the user reads the voicemails. Pass the tab icons into the ViewPagerTabs class: changed so that the raw image is passed instead of the modified drawable because the ripple is applied in through the ViewPagerTabs layout instead of through the drawable containing the icons. Bug: 21086059 Change-Id: Ie426b042d72926ea3feb7baa4717108776152754 --- src/com/android/dialer/DialtactsActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/com/android/dialer/DialtactsActivity.java') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index ae1a16050..f11f1b17a 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -692,6 +692,14 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O super.onActivityResult(requestCode, resultCode, data); } + /** + * Update the number of unread voicemails (potentially other tabs) displayed next to the tab + * icon. + */ + public void updateTabUnreadCounts() { + mListsFragment.updateTabUnreadCounts(); + } + /** * Initiates a fragment transaction to show the dialpad fragment. Animations and other visual * updates are handled by a callback which is invoked after the dialpad fragment is shown. -- cgit v1.2.3