Clear references after Data Usage View removed.
Bug: 6450986 Change-Id: Ia28479983fc192cbeefb16b8ce03f67241e4002c
This commit is contained in:
@@ -549,9 +549,7 @@ public class DataUsageSummary extends Fragment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroyView() {
|
public void onDestroy() {
|
||||||
super.onDestroyView();
|
|
||||||
|
|
||||||
mDataEnabledView = null;
|
mDataEnabledView = null;
|
||||||
mDisableAtLimitView = null;
|
mDisableAtLimitView = null;
|
||||||
|
|
||||||
@@ -559,14 +557,12 @@ public class DataUsageSummary extends Fragment {
|
|||||||
mUidDetailProvider = null;
|
mUidDetailProvider = null;
|
||||||
|
|
||||||
TrafficStats.closeQuietly(mStatsSession);
|
TrafficStats.closeQuietly(mStatsSession);
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onDestroy() {
|
|
||||||
if (this.isRemoving()) {
|
if (this.isRemoving()) {
|
||||||
getFragmentManager()
|
getFragmentManager()
|
||||||
.popBackStack(TAG_APP_DETAILS, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
.popBackStack(TAG_APP_DETAILS, FragmentManager.POP_BACK_STACK_INCLUSIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user