From 130bf263da5b69ccc6f6054cc02a833d9993a7e8 Mon Sep 17 00:00:00 2001 From: Ben Komalo Date: Fri, 1 Jul 2011 16:29:21 -0700 Subject: [PATCH] Remove some stale stopships and TODO's Change-Id: I3221b3c35c5ffb464756f9de288bf36f560cf8fb --- src/com/android/email/activity/MailboxFragmentAdapter.java | 2 -- src/com/android/email/activity/MessageCompose.java | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/com/android/email/activity/MailboxFragmentAdapter.java b/src/com/android/email/activity/MailboxFragmentAdapter.java index c0353644e..52be3d25d 100644 --- a/src/com/android/email/activity/MailboxFragmentAdapter.java +++ b/src/com/android/email/activity/MailboxFragmentAdapter.java @@ -89,7 +89,6 @@ class MailboxFragmentAdapter extends CursorAdapter { private static final int ROW_TYPE_MAILBOX = 0; /** Account "mailboxes" in the combined view */ private static final int ROW_TYPE_ACCOUNT = 1; - // STOPSHIP Need to determine if these types are sufficient for nested folders // The following types are used when drilling into a mailbox /** The current mailbox */ private static final int ROW_TYPE_CURMAILBOX = 2; @@ -114,7 +113,6 @@ class MailboxFragmentAdapter extends CursorAdapter { MailboxColumns.DISPLAY_NAME, MailboxColumns.TYPE, MailboxColumns.UNREAD_COUNT, MailboxColumns.MESSAGE_COUNT, ROW_TYPE_MAILBOX + " AS " + ROW_TYPE, MailboxColumns.FLAGS, MailboxColumns.ACCOUNT_KEY }; - // STOPSHIP May need to adjust sub-folder projection depending upon final UX /** * Projection used to retrieve immediate children for a mailbox. The columns need to * be identical to those in {@link #PROJECTION}. We are only changing the constant diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java index afa8cad5c..bd2f4b30a 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -1714,10 +1714,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus createAndAddTab(R.string.forward_action, ACTION_FORWARD); actionBar.setDisplayShowTitleEnabled(false); - try { // STOPSHIP workaround b/4520517 - actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); - } catch (RuntimeException ignore) { - } + actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); } else { // Spinner based mode switching. if (mActionSpinnerAdapter == null) { @@ -1727,7 +1724,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus @Override public void onItemSelected( AdapterView parent, View view, int position, long id) { - setAction(mActionSpinnerAdapter.getAction(position)); + setAction(ActionSpinnerAdapter.getAction(position)); } @Override