From 275e363d5911c8ad6029c4245a20418aad2ad81c Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 7 Mar 2013 18:27:18 -0800 Subject: [PATCH] Only show sync upgrade prompts after welcome walkthrough --- .../src/com/todoroo/astrid/activity/TaskListActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index 9ba8e1c00..a12ca24e5 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -73,6 +73,7 @@ import com.todoroo.astrid.ui.TaskListFragmentPager; import com.todoroo.astrid.utility.AstridPreferences; import com.todoroo.astrid.utility.Constants; import com.todoroo.astrid.utility.Flags; +import com.todoroo.astrid.welcome.tutorial.WelcomeWalkthrough; public class TaskListActivity extends AstridActivity implements MainMenuListener, OnPageChangeListener { @@ -241,8 +242,6 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener trackActivitySource(); } - SyncUpgradePrompt.showSyncUpgradePrompt(this); - // Have to call this here because sometimes StartupService // isn't called (i.e. if the app was silently alive in the background) abTestEventReportingService.trackUserRetention(this); @@ -523,6 +522,9 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener super.onResume(); registerReceiver(tagDeletedReceiver, new IntentFilter(AstridApiConstants.BROADCAST_EVENT_TAG_DELETED)); registerReceiver(tagRenamedReceiver, new IntentFilter(AstridApiConstants.BROADCAST_EVENT_TAG_RENAMED)); + + if (Preferences.getBoolean(WelcomeWalkthrough.KEY_SHOWED_WELCOME_LOGIN, false)) + SyncUpgradePrompt.showSyncUpgradePrompt(this); } @Override