diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-02-11 18:42:49 -0800 |
---|---|---|
committer | Sarmad Hashmi <mhashmi@google.com> | 2016-02-11 18:42:49 -0800 |
commit | e69ab63eac4cebf71da89de42c91b694ba18c34e (patch) | |
tree | 3906c7c24b30a03ccadc782246d3a27c47409a6a /src/com/android/dialer/calllog | |
parent | 5258aec00cf47cfd28b2dffe77ab339761ebe4ec (diff) |
Temporary fix for call history crash.
The call history crashes because the call log fragment tries to update
unread tab counts but these do not exist within the call history
activity.
BUG=27153608
Change-Id: Ica5517ca733b29981dab76dbdca2b678d69e0306
Diffstat (limited to 'src/com/android/dialer/calllog')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAsyncTaskUtil.java | 1 | ||||
-rw-r--r-- | src/com/android/dialer/calllog/CallLogFragment.java | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAsyncTaskUtil.java b/src/com/android/dialer/calllog/CallLogAsyncTaskUtil.java index d73159c7a..5bcfa6bd5 100644 --- a/src/com/android/dialer/calllog/CallLogAsyncTaskUtil.java +++ b/src/com/android/dialer/calllog/CallLogAsyncTaskUtil.java @@ -408,7 +408,6 @@ public class CallLogAsyncTaskUtil { values.put(CallLog.Calls.IS_READ, "1"); context.getContentResolver().update( CallLog.Calls.CONTENT_URI, values, where.toString(), null); - ((DialtactsActivity) context).updateTabUnreadCounts(); return null; } }); diff --git a/src/com/android/dialer/calllog/CallLogFragment.java b/src/com/android/dialer/calllog/CallLogFragment.java index 3646315ad..ac8dfdabe 100644 --- a/src/com/android/dialer/calllog/CallLogFragment.java +++ b/src/com/android/dialer/calllog/CallLogFragment.java @@ -382,7 +382,6 @@ public class CallLogFragment extends Fragment implements CallLogQueryHandler.Lis @Override public void fetchCalls() { mCallLogQueryHandler.fetchCalls(mCallTypeFilter, mDateLimit); - ((ListsFragment) getParentFragment()).updateTabUnreadCounts(); } private void updateEmptyMessage(int filterType) { @@ -474,10 +473,6 @@ public class CallLogFragment extends Fragment implements CallLogQueryHandler.Lis mCallLogQueryHandler.markNewCallsAsOld(); if (mCallTypeFilter == Calls.VOICEMAIL_TYPE) { CallLogNotificationsHelper.updateVoicemailNotifications(getActivity()); - } else if (((ListsFragment) getParentFragment()).getCurrentTabIndex() == - ListsFragment.TAB_INDEX_HISTORY && !onEntry) { - mCallLogQueryHandler.markMissedCallsAsRead(); - CallLogNotificationsHelper.removeMissedCallNotifications(getActivity()); } } } |