From 608bbc3c404e1d4037c36ecfa79f9bde64a3b30b Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 21 Jan 2011 00:26:08 -0800 Subject: [PATCH] Fix for debug task notification with new task_due prevention logic --- .../astrid/activity/TaskListActivity.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java index 008cad1fa..33791a73f 100644 --- a/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java +++ b/astrid/src/com/todoroo/astrid/activity/TaskListActivity.java @@ -4,9 +4,9 @@ import java.util.ArrayList; import java.util.Date; import java.util.LinkedHashSet; import java.util.List; -import java.util.Map.Entry; import java.util.Timer; import java.util.TimerTask; +import java.util.Map.Entry; import java.util.concurrent.atomic.AtomicReference; import android.app.AlertDialog; @@ -30,28 +30,28 @@ import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; import android.view.ContextMenu; -import android.view.ContextMenu.ContextMenuInfo; import android.view.KeyEvent; import android.view.Menu; import android.view.MenuItem; import android.view.View; -import android.view.View.OnClickListener; -import android.view.View.OnKeyListener; import android.view.ViewGroup; import android.view.Window; import android.view.WindowManager; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.View.OnClickListener; +import android.view.View.OnKeyListener; import android.view.inputmethod.EditorInfo; import android.widget.AbsListView; -import android.widget.AbsListView.OnScrollListener; -import android.widget.AdapterView.AdapterContextMenuInfo; import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.ListView; import android.widget.TextView; -import android.widget.TextView.OnEditorActionListener; import android.widget.Toast; +import android.widget.AbsListView.OnScrollListener; +import android.widget.AdapterView.AdapterContextMenuInfo; +import android.widget.TextView.OnEditorActionListener; import com.timsu.astrid.R; import com.todoroo.andlib.data.Property; @@ -1046,7 +1046,8 @@ public class TaskListActivity extends ListActivity implements OnScrollListener, case CONTEXT_MENU_DEBUG + 1: { itemId = item.getGroupId(); - new Notifications().showTaskNotification(itemId, 0, "test reminder"); + new Notifications().showTaskNotification(itemId, + ReminderService.TYPE_SNOOZE, "test reminder"); return true; }