summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancy Chen <nancychen@google.com>2015-08-20 12:53:32 -0700
committerNancy Chen <nancychen@google.com>2015-08-20 12:53:32 -0700
commit454e61b647e6d0146819915c56c98c347b2da26e (patch)
tree79c2e9a5be8f7dd1c4c7a08e634df9199bbfa8e6
parent822b243845a04067809f2cbc05dc163b4635db0a (diff)
Only dismiss voicemail notifications when navigating to voicemail tab.
Bug: 22741728 Change-Id: I890f447bf580df44344fa7cb0cdfc35583f22e06
-rw-r--r--src/com/android/dialer/calllog/CallLogFragment.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java
index c63b212d1..13b6ca587 100644
--- a/src/com/android/dialer/calllog/CallLogFragment.java
+++ b/src/com/android/dialer/calllog/CallLogFragment.java
@@ -482,8 +482,11 @@ public class CallLogFragment extends Fragment implements CallLogQueryHandler.Lis
if (!onEntry) {
mCallLogQueryHandler.markMissedCallsAsRead();
}
- CallLogNotificationsHelper.removeMissedCallNotifications(getActivity());
- CallLogNotificationsHelper.updateVoicemailNotifications(getActivity());
+ if (mCallTypeFilter == Calls.VOICEMAIL_TYPE) {
+ CallLogNotificationsHelper.updateVoicemailNotifications(getActivity());
+ } else {
+ CallLogNotificationsHelper.removeMissedCallNotifications(getActivity());
+ }
}
}