From 454e61b647e6d0146819915c56c98c347b2da26e Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Thu, 20 Aug 2015 12:53:32 -0700 Subject: Only dismiss voicemail notifications when navigating to voicemail tab. Bug: 22741728 Change-Id: I890f447bf580df44344fa7cb0cdfc35583f22e06 --- src/com/android/dialer/calllog/CallLogFragment.java | 7 +++++-- 1 file 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()); + } } } -- cgit v1.2.3