Merge pull request #2820 from jonas-lundqvist/message_list_help

Create MessageList specific key shortcut Toast
This commit is contained in:
cketti 2017-10-14 02:42:44 +02:00 committed by GitHub
commit 8fc5c2db29
2 changed files with 8 additions and 2 deletions

View file

@ -738,7 +738,12 @@ public class MessageList extends K9Activity implements MessageListFragmentListen
return true; return true;
}*/ }*/
case KeyEvent.KEYCODE_H: { 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(); toast.show();
return true; 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_accept">Accept Key</string>
<string name="account_setup_failed_dlg_invalid_certificate_reject">Reject 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> <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>