From c540b57263250b961a29b26f367b10295ab2f4aa Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Wed, 26 Jan 2011 22:53:08 -0800 Subject: [PATCH] Remove STOPSHIPs and a bit of debug logging Bug: 3396875 Change-Id: I3e874e28c3412aadd9851000a83d69fc8c06aeb9 --- AndroidManifest.xml | 3 ++- res/values/colors.xml | 1 - .../email/activity/MailboxListFragment.java | 14 ++++++++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 998c9116e..8c61e22c8 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -82,6 +82,8 @@ + - diff --git a/res/values/colors.xml b/res/values/colors.xml index f0d6f2810..ed941f128 100644 --- a/res/values/colors.xml +++ b/res/values/colors.xml @@ -47,7 +47,6 @@ #ff9d50a4 - #ff999999 #00ffffff #fff10000 diff --git a/src/com/android/email/activity/MailboxListFragment.java b/src/com/android/email/activity/MailboxListFragment.java index b1a20634f..e7f5a4681 100644 --- a/src/com/android/email/activity/MailboxListFragment.java +++ b/src/com/android/email/activity/MailboxListFragment.java @@ -467,7 +467,7 @@ public class MailboxListFragment extends ListFragment implements OnItemClickList } /** - * STOPSHIP: Very preliminary scrolling code + * Called while dragging; highlight possible drop targets, and autoscroll the list. */ private void onDragLocation(DragEvent event) { // The drag is somewhere in the ListView @@ -505,13 +505,19 @@ public class MailboxListFragment extends ListFragment implements OnItemClickList onDragExited(); return; } else if (newTarget.mMailboxType == Mailbox.TYPE_TRASH) { - Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " TRASH"); + if (DEBUG_DRAG_DROP) { + Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " TRASH"); + } newTarget.setBackgroundColor(sDropTrashColor); } else if (newTarget.isDropTarget(mDragItemMailboxId)) { - Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " TARGET"); + if (DEBUG_DRAG_DROP) { + Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " TARGET"); + } newTarget.setBackgroundDrawable(sDropActiveDrawable); } else { - Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " (CALL)"); + if (DEBUG_DRAG_DROP) { + Log.d("onDragLocation", "=== Mailbox " + newTarget.mMailboxId + " (CALL)"); + } targetAdapterPosition = NO_DROP_TARGET; newTarget.setDropTargetBackground(true, mDragItemMailboxId); }