diff options
author | Nancy Chen <nancychen@google.com> | 2015-11-10 17:08:49 -0800 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2015-11-11 16:27:59 -0800 |
commit | e745bc6ac818cb7a6a1486c183a49e2ea116c933 (patch) | |
tree | 3f9ca699de179a949a93f208431eab04380c3a9e /src/com/android/dialer/calllog/CallLogFragment.java | |
parent | 1febe8b1542d6038787754c0749527a66b58b01d (diff) |
Refresh unread count when voicemail data changes.
When a new voicemail comes in, kick off an update to the unread count.
Bug: 25293846
Change-Id: Id1de18d8a7e1772bf179a385df10c5a903c26fee
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogFragment.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 3cf58bd28..ab5bd435e 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -43,6 +43,7 @@ import com.android.contacts.common.GeoUtil; import com.android.contacts.common.util.PermissionsUtil; import com.android.dialer.R; import com.android.dialer.filterednumber.FilteredNumbersUtil; +import com.android.dialer.list.ListsFragment; import com.android.dialer.util.EmptyLoader; import com.android.dialer.voicemail.VoicemailPlaybackPresenter; import com.android.dialer.widget.EmptyContentView; @@ -400,6 +401,10 @@ public class CallLogFragment extends Fragment implements CallLogQueryHandler.Lis @Override public void fetchCalls() { mCallLogQueryHandler.fetchCalls(mCallTypeFilter, mDateLimit); + + if (mVoicemailPlaybackPresenter != null) { + ((ListsFragment) getParentFragment()).updateTabUnreadCounts(); + } } private void updateEmptyMessage(int filterType) { |