summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-05-01 15:40:10 -0700
committerAndrew Lee <anwlee@google.com>2015-05-01 15:40:57 -0700
commitd10eef28fc67aea0e4f4f49813b802ce1df5f7c7 (patch)
tree8951339e52862f03cd508d9f71adb696b28e6d32
parent2555402ee07f87ac219abb430cd23c668f8f0c9c (diff)
Fix NPE from ListsFragment crash.
I'm not sure if anyone else is seeing this, but this change didn't seem like it would be harmful to make. I was running into sadness because mListsFragment was undefined. Change-Id: I75712c2cb3626002372ac9b4812c44c2ed74c12f
-rw-r--r--src/com/android/dialer/DialtactsActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index 2bda09184..167c131cb 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -410,8 +410,9 @@ 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, new ListsFragment(), TAG_FAVORITES_FRAGMENT)
+ .add(R.id.dialtacts_frame, mListsFragment, TAG_FAVORITES_FRAGMENT)
.commit();
} else {
mSearchQuery = savedInstanceState.getString(KEY_SEARCH_QUERY);