Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e69ab63e authored by Sarmad Hashmi's avatar Sarmad Hashmi
Browse files

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
parent 5258aec0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
            }
        });
+0 −5
Original line number Diff line number Diff line
@@ -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());
            }
        }
    }