1
0
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:
Bao-Long Nguyen-Trong 2009-06-16 15:05:11 +00:00
parent 3ea149bd37
commit 98fe0cc25f
3 changed files with 37 additions and 14 deletions

View File

@ -6,18 +6,6 @@
android:title="@string/compose_action" android:title="@string/compose_action"
android:icon="@drawable/ic_menu_compose" 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 <item
android:id="@+id/set_sort" android:id="@+id/set_sort"
android:title="@string/sort_by" android:title="@string/sort_by"
@ -54,5 +42,26 @@
android:title="@string/reverse_sort_action" android:title="@string/reverse_sort_action"
android:icon="@drawable/ic_menu_reverse_sort" 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> </menu>

View File

@ -644,6 +644,10 @@ public class FolderList extends K9ListActivity {
onOpenFolder(folder); onOpenFolder(folder);
break; break;
case R.id.mark_all_as_read:
MessagingController.getInstance(getApplication()).markAllMessagesRead(mAccount, folder.name);
break;
case R.id.send_messages: case R.id.send_messages:
Log.i(Email.LOG_TAG, "sending pending messages from " + folder.name); Log.i(Email.LOG_TAG, "sending pending messages from " + folder.name);

View File

@ -971,7 +971,17 @@ public class MessageList extends K9ListActivity {
finish(); finish();
return true; 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: default:
return super.onOptionsItemSelected(item); return super.onOptionsItemSelected(item);
} }