diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-13 02:46:20 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-13 02:46:20 +0000 |
commit | 923ddfdbab1a765fc00545f79479ac9d82adb8a1 (patch) | |
tree | 10139c296e126e38be78f037dd0336dd37872d52 /java/com/android/dialer/app/calllog/CallLogFragment.java | |
parent | 61db91fbbae7e4e60831b6d2bd5e476cc7646912 (diff) | |
parent | f8a0caa1c7f9a7c73e59457c746baf703bc4cb17 (diff) |
Merge "Don't fetch calls if the parent doesn't exist."
Diffstat (limited to 'java/com/android/dialer/app/calllog/CallLogFragment.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogFragment.java b/java/com/android/dialer/app/calllog/CallLogFragment.java index 816801437..4e968f095 100644 --- a/java/com/android/dialer/app/calllog/CallLogFragment.java +++ b/java/com/android/dialer/app/calllog/CallLogFragment.java @@ -489,7 +489,10 @@ public class CallLogFragment extends Fragment @Override public void fetchCalls() { callLogQueryHandler.fetchCalls(callTypeFilter, dateLimit); - if (!isCallLogActivity && getActivity() != null && !getActivity().isFinishing()) { + if (!isCallLogActivity + && getActivity() != null + && !getActivity().isFinishing() + && FragmentUtils.getParent(this, CallLogFragmentListener.class) != null) { FragmentUtils.getParentUnsafe(this, CallLogFragmentListener.class).updateTabUnreadCounts(); } } |