diff options
author | Andrew Lee <anwlee@google.com> | 2015-05-05 18:21:45 +0000 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-05-05 18:21:45 +0000 |
commit | 6a86624270b51df0adc4fc1529661a45a2bb9f03 (patch) | |
tree | fe6b0cdff1bbb4f359e7fdf0cc1b59af4482885c /src/com/android/dialer/DialtactsActivity.java | |
parent | d10eef28fc67aea0e4f4f49813b802ce1df5f7c7 (diff) |
Revert "Fix NPE from ListsFragment crash."
This reverts commit d10eef28fc67aea0e4f4f49813b802ce1df5f7c7.
Change-Id: I0867f991c071fc55d1eadf611386b713c910d17f
Diffstat (limited to 'src/com/android/dialer/DialtactsActivity.java')
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 3 |
1 files changed, 1 insertions, 2 deletions
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); |