From 02b327e7f28bc24771f644ab2d98cf0ad4f2e650 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Tue, 15 May 2012 11:33:59 -0700 Subject: [PATCH] Clear references after Data Usage View removed. Bug: 6450986 Change-Id: Ia28479983fc192cbeefb16b8ce03f67241e4002c --- src/com/android/settings/DataUsageSummary.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/com/android/settings/DataUsageSummary.java b/src/com/android/settings/DataUsageSummary.java index 3b0ce595758..4882fbe906c 100644 --- a/src/com/android/settings/DataUsageSummary.java +++ b/src/com/android/settings/DataUsageSummary.java @@ -549,9 +549,7 @@ public class DataUsageSummary extends Fragment { } @Override - public void onDestroyView() { - super.onDestroyView(); - + public void onDestroy() { mDataEnabledView = null; mDisableAtLimitView = null; @@ -559,14 +557,12 @@ public class DataUsageSummary extends Fragment { mUidDetailProvider = null; TrafficStats.closeQuietly(mStatsSession); - } - @Override - public void onDestroy() { if (this.isRemoving()) { getFragmentManager() .popBackStack(TAG_APP_DETAILS, FragmentManager.POP_BACK_STACK_INCLUSIVE); } + super.onDestroy(); }