summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2013-08-12 20:47:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-12 20:47:20 +0000
commit598e9a685606fa18c49defca69ee9521eb4ed473 (patch)
tree87cb2cfb140566c345d0c311aa2a087acbb4413c
parent63ea4cd19569c8d5ee6f9a7ce2c933d09359fc0b (diff)
parent5781afe916100c4ed709e8edacac4a71db090108 (diff)
Merge "Persist favorites clicked listener across activity destruction" into klp-dev
-rw-r--r--src/com/android/dialer/DialtactsActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java
index e7a7de90c..93d31f3aa 100644
--- a/src/com/android/dialer/DialtactsActivity.java
+++ b/src/com/android/dialer/DialtactsActivity.java
@@ -262,7 +262,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
// is null. Otherwise the fragment manager takes care of recreating these fragments.
if (savedInstanceState == null) {
final PhoneFavoriteFragment phoneFavoriteFragment = new PhoneFavoriteFragment();
- phoneFavoriteFragment.setListener(mPhoneFavoriteListener);
final FragmentTransaction ft = getFragmentManager().beginTransaction();
ft.add(R.id.dialtacts_frame, phoneFavoriteFragment, TAG_FAVORITES_FRAGMENT);
@@ -317,6 +316,7 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
mPhoneNumberPickerActionListener);
} else if (fragment instanceof PhoneFavoriteFragment) {
mPhoneFavoriteFragment = (PhoneFavoriteFragment) fragment;
+ mPhoneFavoriteFragment.setListener(mPhoneFavoriteListener);
}
}