Bug 905162 - Reset all MostRecentPage views in onDestroyView (r=liuche)
authorLucas Rocha <lucasr@mozilla.com>
Wed, 14 Aug 2013 23:23:49 +0100
changeset 143532 5c6ab32efd8810148ffb92edc39603df1247e80f
parent 143531 be075a38db6eef8b77680115cbe8c8ca52edea4f
child 143533 e04775b29f63e4553b8e551fd631110976cefbaf
push id25130
push userlrocha@mozilla.com
push dateWed, 21 Aug 2013 09:41:27 +0000
treeherdermozilla-central@b2486721572e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs905162
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 905162 - Reset all MostRecentPage views in onDestroyView (r=liuche)
mobile/android/base/home/MostRecentPage.java
--- a/mobile/android/base/home/MostRecentPage.java
+++ b/mobile/android/base/home/MostRecentPage.java
@@ -112,16 +112,18 @@ public class MostRecentPage extends Home
 
         registerForContextMenu(mList);
     }
 
     @Override
     public void onDestroyView() {
         super.onDestroyView();
         mList = null;
+        mTitle = null;
+        mEmptyView = null;
     }
 
     @Override
     public void onActivityCreated(Bundle savedInstanceState) {
         super.onActivityCreated(savedInstanceState);
 
         final Activity activity = getActivity();