author | Lucas Rocha <lucasr@mozilla.com> |
Fri, 26 Jul 2013 12:46:29 +0100 | |
changeset 143451 | d910238981baa6e447ad07efdde7493c0ebfedba |
parent 143450 | 7121a3b23982bf3f5592962c2e1b08c3deb4c1ab |
child 143452 | 423ebd7660dc3b858f9ff9bf4a7221fc18155f64 |
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 | sriram |
bugs | 889621 |
milestone | 25.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
|
--- a/mobile/android/base/home/HomePager.java +++ b/mobile/android/base/home/HomePager.java @@ -42,23 +42,26 @@ public class HomePager extends ViewPager public void onUrlOpen(String url); } public interface OnNewTabsListener { public void onNewTabs(String[] urls); } public HomePager(Context context) { - super(context); - mContext = context; + this(context, null); } public HomePager(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; + + // This is to keep all 3 pages in memory after they are + // selected in the pager. + setOffscreenPageLimit(2); } /** * Loads and initializes the pager. * * @param fm FragmentManager for the adapter */ public void show(FragmentManager fm, Page page, PropertyAnimator animator) {