Create MessageList specific key shortcut Toast

Some of the key shortcuts does not trigger any actions when in
MessageList. This change creates a custom Toast message with the reduced
set of keys that has any action.
This commit is contained in:
Jonas Lundqvist 2017-10-06 22:23:39 +02:00
parent d4eb23894d
commit b56f3feb0b
2 changed files with 8 additions and 2 deletions

View file

@ -738,7 +738,12 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
return true;
}*/
case KeyEvent.KEYCODE_H: {
Toast toast = Toast.makeText(this, R.string.message_list_help_key, Toast.LENGTH_LONG);
Toast toast;
if (mDisplayMode == DisplayMode.MESSAGE_LIST) {
toast = Toast.makeText(this, R.string.message_list_help_key, Toast.LENGTH_LONG);
} else {
toast = Toast.makeText(this, R.string.message_view_help_key, Toast.LENGTH_LONG);
}
toast.show();
return true;
}

View file

@ -790,7 +790,8 @@ Please submit bug reports, contribute new features and ask questions at
<string name="account_setup_failed_dlg_invalid_certificate_accept">Accept Key</string>
<string name="account_setup_failed_dlg_invalid_certificate_reject">Reject Key</string>
<string name="message_list_help_key">Del (or D) - Delete\nR - Reply\nA - Reply All\nC - Compose\nF - Forward\nM - Move\nV - Archive\nY - Copy\nZ - Mark (Un)read\nG - Star\nO - Sort type\nI - Sort order\nQ - Return to Folders\nS - Select/deselect\nJ or P - Previous Message\nK or N - Next Message</string>
<string name="message_view_help_key">Del (or D) - Delete\nR - Reply\nA - Reply All\nC - Compose\nF - Forward\nM - Move\nV - Archive\nY - Copy\nZ - Mark (Un)read\nG - Star\nO - Sort type\nI - Sort order\nQ - Return to Folders\nS - Select/deselect\nJ or P - Previous Message\nK or N - Next Message</string>
<string name="message_list_help_key">Del (or D) - Delete\nC - Compose\nM - Move\nV - Archive\nY - Copy\nZ - Mark (Un)read\nG - Star\nO - Sort type\nI - Sort order\nQ - Return to Folders\nS - Select/deselect</string>
<string name="folder_list_help_key">1 - Display only 1st Class folders\n2 - Display 1st and 2nd Class folders\n3 - Display all except 2nd Class folders\n4 - Display all folders\nQ - Return to Accounts\nS - Edit Account Settings</string>