mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -05:00
Fixed issue 476
TODO: Add confirm dialog
This commit is contained in:
parent
3ea149bd37
commit
98fe0cc25f
@ -6,18 +6,6 @@
|
||||
android:title="@string/compose_action"
|
||||
android:icon="@drawable/ic_menu_compose"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/list_folders"
|
||||
android:alphabeticShortcut="f"
|
||||
android:title="@string/list_folders_action"
|
||||
android:icon="@drawable/ic_menu_navigate"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/check_mail"
|
||||
android:alphabeticShortcut="r"
|
||||
android:title="@string/check_mail_action"
|
||||
android:icon="@drawable/ic_menu_refresh"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/set_sort"
|
||||
android:title="@string/sort_by"
|
||||
@ -54,5 +42,26 @@
|
||||
android:title="@string/reverse_sort_action"
|
||||
android:icon="@drawable/ic_menu_reverse_sort"
|
||||
/>
|
||||
|
||||
<item
|
||||
android:id="@+id/list_folders"
|
||||
android:alphabeticShortcut="f"
|
||||
android:title="@string/list_folders_action"
|
||||
android:icon="@drawable/ic_menu_navigate"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/check_mail"
|
||||
android:alphabeticShortcut="r"
|
||||
android:title="@string/check_mail_action"
|
||||
android:icon="@drawable/ic_menu_refresh"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/mark_all_as_read"
|
||||
android:title="@string/mark_all_as_read_action"
|
||||
android:icon="@drawable/ic_menu_inbox"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/folder_settings"
|
||||
android:title="@string/folder_settings_action"
|
||||
android:icon="@drawable/ic_menu_preferences"
|
||||
/>
|
||||
</menu>
|
||||
|
@ -644,6 +644,10 @@ public class FolderList extends K9ListActivity {
|
||||
onOpenFolder(folder);
|
||||
break;
|
||||
|
||||
case R.id.mark_all_as_read:
|
||||
MessagingController.getInstance(getApplication()).markAllMessagesRead(mAccount, folder.name);
|
||||
break;
|
||||
|
||||
case R.id.send_messages:
|
||||
Log.i(Email.LOG_TAG, "sending pending messages from " + folder.name);
|
||||
|
||||
|
@ -971,7 +971,17 @@ public class MessageList extends K9ListActivity {
|
||||
finish();
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
case R.id.mark_all_as_read:
|
||||
MessagingController.getInstance(getApplication()).markAllMessagesRead(mAccount, mFolderName);
|
||||
|
||||
return true;
|
||||
|
||||
case R.id.folder_settings:
|
||||
FolderSettings.actionSettings(this, mAccount, mFolderName);
|
||||
|
||||
return true;
|
||||
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user