Bug 905162 - Misc empty view tweaks. r=lucasr
authorChenxia Liu <liuche@mozilla.com>
Wed, 14 Aug 2013 23:24:21 +0100
changeset 143534 27a6e8a793a3c7e3cb95051c020e7416637bd28b
parent 143533 e04775b29f63e4553b8e551fd631110976cefbaf
child 143535 7e1b879c9857e75ef0b72ade7599318348ef8fa5
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)
reviewerslucasr
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 - Misc empty view tweaks. r=lucasr
mobile/android/base/home/LastTabsPage.java
mobile/android/base/home/MostRecentPage.java
--- a/mobile/android/base/home/LastTabsPage.java
+++ b/mobile/android/base/home/LastTabsPage.java
@@ -162,17 +162,17 @@ public class LastTabsPage extends HomeFr
         // empty view if it hasn't been set already.
         if (mTitle != null) {
             mTitle.setVisibility(View.GONE);
         }
         mRestoreButton.setVisibility(View.GONE);
 
         if (mEmptyView == null) {
             // Set empty page view. We delay this so that the empty view won't flash.
-            ViewStub emptyViewStub = (ViewStub) getView().findViewById(R.id.home_empty_view_stub);
+            final ViewStub emptyViewStub = (ViewStub) getView().findViewById(R.id.home_empty_view_stub);
             mEmptyView = emptyViewStub.inflate();
 
             final ImageView emptyIcon = (ImageView) mEmptyView.findViewById(R.id.home_empty_image);
             emptyIcon.setImageResource(R.drawable.icon_last_tabs_empty);
 
             final TextView emptyText = (TextView) mEmptyView.findViewById(R.id.home_empty_text);
             emptyText.setText(R.string.home_last_tabs_empty);
 
--- a/mobile/android/base/home/MostRecentPage.java
+++ b/mobile/android/base/home/MostRecentPage.java
@@ -167,17 +167,17 @@ public class MostRecentPage extends Home
         // Cursor is empty, so hide the title and set the
         // empty view if it hasn't been set already.
         if (mTitle != null) {
             mTitle.setVisibility(View.GONE);
         }
 
         if (mEmptyView == null) {
             // Set empty page view. We delay this so that the empty view won't flash.
-            ViewStub emptyViewStub = (ViewStub) getView().findViewById(R.id.home_empty_view_stub);
+            final ViewStub emptyViewStub = (ViewStub) getView().findViewById(R.id.home_empty_view_stub);
             mEmptyView = emptyViewStub.inflate();
 
             final ImageView emptyIcon = (ImageView) mEmptyView.findViewById(R.id.home_empty_image);
             emptyIcon.setImageResource(R.drawable.icon_most_recent_empty);
 
             final TextView emptyText = (TextView) mEmptyView.findViewById(R.id.home_empty_text);
             emptyText.setText(R.string.home_most_recent_empty);