mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-30 13:12:25 -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:
parent
5ac3d1d5c2
commit
4b4412b666
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user