Removed AB testing of theme

pull/14/head
Sam Bosley 14 years ago
parent 9a5120cba4
commit 8f0da20d09

@ -42,7 +42,6 @@ import com.todoroo.astrid.opencrx.OpencrxCoreUtils;
import com.todoroo.astrid.producteev.ProducteevUtilities;
import com.todoroo.astrid.reminders.ReminderStartupReceiver;
import com.todoroo.astrid.service.abtesting.ABChooser;
import com.todoroo.astrid.service.abtesting.ABOptions;
import com.todoroo.astrid.service.abtesting.FeatureFlipper;
import com.todoroo.astrid.utility.AstridPreferences;
import com.todoroo.astrid.utility.Constants;
@ -136,14 +135,7 @@ public class StartupService {
if (Preferences.getLong(AstridPreferences.P_FIRST_LAUNCH, -1) < 0) {
Preferences.setLong(AstridPreferences.P_FIRST_LAUNCH, DateUtilities.now());
}
int defaultTheme = abChooser.getChoiceForOption(ABOptions.AB_THEME_KEY);
if (defaultTheme == 0)
Preferences.setString(R.string.p_theme, "white"); //$NON-NLS-1$
else
Preferences.setString(R.string.p_theme, "black"); //$NON-NLS-1$
} else {
abChooser.setChoiceForOption(ABOptions.AB_THEME_KEY, 0);
Preferences.setLong(AstridPreferences.P_FIRST_LAUNCH, 0);
}
BeastModePreferences.migrateBeastModePreferences(context);

@ -4,8 +4,6 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import com.todoroo.astrid.service.StatisticsConstants;
/**
* Helper class to define options with their probabilities and descriptions
* @author Sam Bosley <sam@astrid.com>
@ -169,17 +167,5 @@ public class ABOptions {
private void initialize() { // Set up
//Calls to addOption go here
addOption(AB_THEME_KEY, AB_THEME_PROBS, AB_THEME_DESCRIPTIONS, AB_THEME_EVENTS);
}
public static final String AB_THEME_KEY = "ab-theme";
private static final int[] AB_THEME_PROBS = { 9, 1 };
private static final String[] AB_THEME_DESCRIPTIONS = { "ab-theme-white", "ab-theme-black" };
private static final String[] AB_THEME_EVENTS = { StatisticsConstants.USER_FIRST_TASK,
StatisticsConstants.USER_FIRST_LIST,
StatisticsConstants.ACTFM_NEW_USER,
StatisticsConstants.TASK_ONE_WEEK,
StatisticsConstants.TASK_TWO_WEEKS,
StatisticsConstants.TASK_THREE_WEEKS };
}

Loading…
Cancel
Save