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

Add back 'refresh' and 'settings' to folder context menu.

Both items are commonly used even by the average user (and likely both
are used more commonly than 'clear local messages'), so it makes
sense to provide them in the context menu as well as the action bar.
This commit is contained in:
Danny Baumann 2013-01-08 13:12:47 +01:00
parent 5ac3d1d5c2
commit 4b4412b666
2 changed files with 13 additions and 1 deletions

View File

@ -1,9 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/refresh_folder"
android:title="@string/check_mail_action"
/>
<item
android:id="@+id/clear_local_folder"
android:title="@string/clear_local_folder_action"
/>
<item
android:id="@+id/folder_settings"
android:title="@string/folder_settings_action"
/>
</menu>

View File

@ -647,6 +647,12 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
case R.id.clear_local_folder:
onClearFolder(mAccount, folder.name);
break;
case R.id.refresh_folder:
checkMail(folder);
break;
case R.id.folder_settings:
FolderSettings.actionSettings(this, mAccount, folder.name);
break;
}
return super.onContextItemSelected(item);