diff options
-rw-r--r-- | java/com/android/dialer/searchfragment/list/NewSearchFragment.java | 3 | ||||
-rw-r--r-- | java/com/android/dialer/searchfragment/list/res/layout/fragment_search.xml | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java index dff6c7282..70358bb16 100644 --- a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java +++ b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java @@ -152,9 +152,6 @@ public final class NewSearchFragment extends Fragment @Override public void onDestroy() { super.onDestroy(); - // close adapters - adapter.setNearbyPlacesCursor(null); - adapter.setContactsCursor(null); ThreadUtil.getUiThreadHandler().removeCallbacks(loadNearbyPlacesRunnable); } diff --git a/java/com/android/dialer/searchfragment/list/res/layout/fragment_search.xml b/java/com/android/dialer/searchfragment/list/res/layout/fragment_search.xml index 06c266082..07113c044 100644 --- a/java/com/android/dialer/searchfragment/list/res/layout/fragment_search.xml +++ b/java/com/android/dialer/searchfragment/list/res/layout/fragment_search.xml @@ -16,7 +16,7 @@ --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_height="match_parent" + android:layout_height="match_parent" android:layout_width="match_parent"> <android.support.v7.widget.RecyclerView |