Reorder stuff for better performance

pull/14/head
Sam Bosley 13 years ago
parent bf8dc12ff6
commit 1746ec4e9f

@ -183,6 +183,9 @@ public class StartupService {
// perform startup activities in a background thread
final int finalLatestVersion = latestSetVersion;
initializeABTesting(latestSetVersion == 0);
new Thread(new Runnable() {
public void run() {
// start widget updating alarm
@ -215,10 +218,11 @@ public class StartupService {
// Check for feature flips
featureFlipper.updateFeatures();
abTestEventDao.createRelativeDateEvents();
}
}).start();
initializeABTesting(latestSetVersion == 0);
AstridPreferences.setPreferenceDefaults();
// check for task killers
@ -232,7 +236,6 @@ public class StartupService {
abTestEventReportingService.initialize();
abTestEventReportingService.pushAllUnreportedABTestEvents();
abChooser.makeChoicesForAllTests(newUser, taskService.getUserActivationStatus());
abTestEventDao.createRelativeDateEvents();
}
/**

Loading…
Cancel
Save