summaryrefslogtreecommitdiff
path: root/src/com/android/dialer/DialtactsActivity.java
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-08-31 17:18:41 -0700
committerNancy Chen <nancychen@google.com>2015-09-01 16:10:00 -0700
commitea7c0b859a57a5c61c701bf0b710b44775f537c3 (patch)
treec025115708ef6547ef12ebc59ecd0c88c9cdab38 /src/com/android/dialer/DialtactsActivity.java
parent7de107bff21b046c50a42bebf57eb244772412e9 (diff)
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
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r--src/com/android/dialer/DialtactsActivity.java8
1 files changed, 8 insertions, 0 deletions
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
@@ -693,6 +693,14 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
}
/**
+ * 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.
* @see #onDialpadShown