diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-26 17:33:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-26 17:33:19 +0000 |
commit | 418dc0004c59b3380e2dc6408fb87800c4460479 (patch) | |
tree | bde9ee3eb2b8b789a8de4bce793b47424857933c /java/com/android/dialer/app/list/ListsFragment.java | |
parent | 2bc616694d46fde2ad76926e20e8f5f89cda5721 (diff) | |
parent | d033dead22b83cdf61a53d48c99653c28cb8db61 (diff) |
Merge "Fix onVisible/onNotVisible called on CallLogFragment without being attahced after rotation"
Diffstat (limited to 'java/com/android/dialer/app/list/ListsFragment.java')
-rw-r--r-- | java/com/android/dialer/app/list/ListsFragment.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/java/com/android/dialer/app/list/ListsFragment.java b/java/com/android/dialer/app/list/ListsFragment.java index 8dbe18cee..a94f9c137 100644 --- a/java/com/android/dialer/app/list/ListsFragment.java +++ b/java/com/android/dialer/app/list/ListsFragment.java @@ -107,7 +107,7 @@ public class ListsFragment extends Fragment implements OnPageChangeListener, Lis @Override public void onResume() { - LogUtil.d("ListsFragment.onResume", null); + LogUtil.enterBlock("ListsFragment.onResume"); Trace.beginSection(TAG + " onResume"); super.onResume(); @@ -124,17 +124,11 @@ public class ListsFragment extends Fragment implements OnPageChangeListener, Lis mCallLogQueryHandler.fetchMissedCallsUnreadCount(); Trace.endSection(); mCurrentPage = mAdapter.getItem(mViewPager.getCurrentItem()); - if (mCurrentPage instanceof CallLogFragment) { - ((CallLogFragment) mCurrentPage).onVisible(); - } } @Override public void onPause() { - LogUtil.d("ListsFragment.onPause", null); - if (mCurrentPage instanceof CallLogFragment) { - ((CallLogFragment) mCurrentPage).onNotVisible(); - } + LogUtil.enterBlock("ListsFragment.onPause"); super.onPause(); mPaused = true; @@ -149,7 +143,7 @@ public class ListsFragment extends Fragment implements OnPageChangeListener, Lis @Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { - LogUtil.d("ListsFragment.onCreateView", null); + LogUtil.enterBlock("ListsFragment.onCreateView"); Trace.beginSection(TAG + " onCreateView"); Trace.beginSection(TAG + " inflate view"); final View parentView = inflater.inflate(R.layout.lists_fragment, container, false); |