1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Move "move" and "copy" out of a submenu

This commit is contained in:
Jesse Vincent 2012-09-08 22:55:43 -04:00 committed by Andrew Chen
parent 9fbb2b4836
commit 87e437b388
2 changed files with 9 additions and 22 deletions

View File

@ -52,21 +52,15 @@
android:showAsAction="ifRoom"
/>
<item
android:id="@+id/move_or_copy"
android:title="@string/move_or_copy_action"
android:showAsAction="ifRoom"
android:icon="?attr/iconActionMoveOrCopy">
<menu>
<item
android:id="@+id/move"
android:title="@string/move_action"
/>
<item
android:id="@+id/copy"
android:title="@string/copy_action"
/>
</menu>
</item>
android:id="@+id/move"
android:showAsAction="ifRoom"
android:icon="?attr/iconActionMoveOrCopy"
android:title="@string/move_action"
/>
<item
android:id="@+id/copy"
android:title="@string/copy_action"
/>
<item
android:id="@+id/toggle_unread"
android:alphabeticShortcut="u"

View File

@ -2792,7 +2792,6 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
menu.findItem(R.id.archive).setVisible(true);
menu.findItem(R.id.spam).setVisible(true);
menu.findItem(R.id.copy).setVisible(true);
menu.findItem(R.id.move_or_copy).setVisible(true);
// hide uncapable
/*
@ -2846,7 +2845,6 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
if (mQueryString != null) {
menu.findItem(R.id.move).setVisible(false);
menu.findItem(R.id.copy).setVisible(false);
menu.findItem(R.id.move_or_copy).setVisible(false);
menu.findItem(R.id.archive).setVisible(false);
menu.findItem(R.id.spam).setVisible(false);
@ -2865,11 +2863,6 @@ public class MessageList extends K9ListActivity implements OnItemClickListener,
menu.findItem(R.id.spam).setVisible(false);
}
if (!mController.isMoveCapable(mAccount)
&& !mController.isCopyCapable(mAccount)) {
menu.findItem(R.id.move_or_copy).setVisible(false);
}
if (!mAccount.hasArchiveFolder()) {
menu.findItem(R.id.archive).setVisible(false);
}