author | Lucas Rocha <lucasr@mozilla.com> |
Wed, 14 Aug 2013 23:23:48 +0100 | |
changeset 143531 | be075a38db6eef8b77680115cbe8c8ca52edea4f |
parent 143530 | d9ff3e3468ee56808fc82626adcd8d3f993fb3be |
child 143532 | 5c6ab32efd8810148ffb92edc39603df1247e80f |
push id | 25130 |
push user | lrocha@mozilla.com |
push date | Wed, 21 Aug 2013 09:41:27 +0000 |
treeherder | mozilla-central@b2486721572e [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | liuche |
bugs | 905162 |
milestone | 26.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
|
mobile/android/base/home/LastTabsPage.java | file | annotate | diff | comparison | revisions | |
mobile/android/base/home/MostRecentPage.java | file | annotate | diff | comparison | revisions |
--- a/mobile/android/base/home/LastTabsPage.java +++ b/mobile/android/base/home/LastTabsPage.java @@ -161,17 +161,17 @@ public class LastTabsPage extends HomeFr // 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.VISIBLE); } 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) getActivity().findViewById(R.id.home_empty_view_stub); + 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 @@ -163,17 +163,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.VISIBLE); } if (mEmptyView == null) { // Set empty page view. We delay this so that the empty view won't flash. - ViewStub emptyViewStub = (ViewStub) getActivity().findViewById(R.id.home_empty_view_stub); + 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);