From 6a86624270b51df0adc4fc1529661a45a2bb9f03 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 5 May 2015 18:21:45 +0000 Subject: Revert "Fix NPE from ListsFragment crash." This reverts commit d10eef28fc67aea0e4f4f49813b802ce1df5f7c7. Change-Id: I0867f991c071fc55d1eadf611386b713c910d17f --- src/com/android/dialer/DialtactsActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index 167c131cb..2bda09184 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -410,9 +410,8 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O // Add the favorites fragment but only if savedInstanceState is null. Otherwise the // fragment manager is responsible for recreating it. if (savedInstanceState == null) { - mListsFragment = new ListsFragment(); getFragmentManager().beginTransaction() - .add(R.id.dialtacts_frame, mListsFragment, TAG_FAVORITES_FRAGMENT) + .add(R.id.dialtacts_frame, new ListsFragment(), TAG_FAVORITES_FRAGMENT) .commit(); } else { mSearchQuery = savedInstanceState.getString(KEY_SEARCH_QUERY); -- cgit v1.2.3