From 0d324b6d995bd68b105d255097b93adc449753bb Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 10 Sep 2012 10:36:32 -0700 Subject: [PATCH] Use most conservative memory setting for swipe between lists, update ab test identifier --- astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java | 2 +- astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java b/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java index 8e1eebef9..3fe60ca13 100644 --- a/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java +++ b/astrid/src/com/todoroo/astrid/service/abtesting/ABTests.java @@ -121,7 +121,7 @@ public class ABTests { public static final String AB_TASK_EDIT_TOAST = "android_task_edit_toast"; //$NON-NLS-1$ - public static final String AB_SWIPE_BETWEEN = "android_swipe_v2"; //$NON-NLS-1$ + public static final String AB_SWIPE_BETWEEN = "android_swipe_v3"; //$NON-NLS-1$ private void initialize() { addTest(AB_TASK_EDIT_TOAST, new int[] { 1, 1 }, diff --git a/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java b/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java index 1e672790b..07c76d129 100644 --- a/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java +++ b/astrid/src/com/todoroo/astrid/ui/TaskListFragmentPager.java @@ -29,7 +29,7 @@ public class TaskListFragmentPager extends ViewPager { public TaskListFragmentPager(Context context, AttributeSet attrs) { super(context, attrs); - setOffscreenPageLimit(3); + setOffscreenPageLimit(1); setPageMargin(1); setPageMarginDrawable(R.drawable.vertical_separator); }