From e23aee3b9be8452346e8bcecb06c344a61c14ec6 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 22 Dec 2011 11:21:20 -0700 Subject: [PATCH] Tweaked the sequence of help popovers so the lists button help won't show right away --- .../src/com/todoroo/astrid/activity/TaskListActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index eaac861a4..6e94bb0c1 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -591,6 +591,10 @@ public class TaskListActivity extends ListActivity implements OnScrollListener, if (!Preferences.getBoolean(R.string.p_showed_add_task_help, false)) { HelpInfoPopover.showPopover(TaskListActivity.this, quickAddBox, R.string.help_popover_add_task, null); Preferences.setBoolean(R.string.p_showed_add_task_help, true); + } else if (Preferences.isSet(getString(R.string.p_showed_lists_help)) && + !Preferences.getBoolean(R.string.p_showed_lists_help, false)) { + HelpInfoPopover.showPopover(TaskListActivity.this, findViewById(R.id.back), R.string.help_popover_lists, null); + Preferences.setBoolean(R.string.p_showed_lists_help, true); } if (filter.title != null && filter.title.equals(getString(R.string.BFE_Active))) { @@ -896,7 +900,9 @@ public class TaskListActivity extends ListActivity implements OnScrollListener, OnDismissListener onDismiss = new OnDismissListener() { @Override public void onDismiss() { - if (!Preferences.getBoolean(R.string.p_showed_lists_help, false)) { + if (!Preferences.isSet(getString(R.string.p_showed_lists_help))) { + Preferences.setBoolean(R.string.p_showed_lists_help, false); + } else if (!Preferences.getBoolean(R.string.p_showed_lists_help, false)) { Preferences.setBoolean(R.string.p_showed_lists_help, true); HelpInfoPopover.showPopover(TaskListActivity.this, findViewById(R.id.back), R.string.help_popover_lists, null); }