Preload a few more fragments in the task list pager. We can experiment with this setting for optimal performance/memory tradeoff

pull/14/head
Sam Bosley 13 years ago
parent 35734273f0
commit a222e28cd6

@ -13,8 +13,11 @@ import com.todoroo.astrid.utility.Flags;
public class TaskListFragmentPager extends ViewPager { public class TaskListFragmentPager extends ViewPager {
private static final int OFFSCREEN_PAGE_LIMIT = 2;
public TaskListFragmentPager(Context context, AttributeSet attrs) { public TaskListFragmentPager(Context context, AttributeSet attrs) {
super(context, attrs); super(context, attrs);
setOffscreenPageLimit(OFFSCREEN_PAGE_LIMIT);
} }
@Override @Override

Loading…
Cancel
Save