1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 23:21:50 -05:00

Explicitly set focus to "To:" input field when composing or forwarding

a message.
This commit is contained in:
cketti 2011-02-14 08:28:03 +01:00
parent 8b99b5886e
commit e70d091433

View File

@ -525,8 +525,12 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
ACTION_EDIT_DRAFT.equals(action)) { ACTION_EDIT_DRAFT.equals(action)) {
//change focus to message body. //change focus to message body.
mMessageContentView.requestFocus(); mMessageContentView.requestFocus();
} else {
// Explicitly set focus to "To:" input field (see issue 2998)
mToView.requestFocus();
} }
mEncryptLayout = findViewById(R.id.layout_encrypt); mEncryptLayout = findViewById(R.id.layout_encrypt);
mCryptoSignatureCheckbox = (CheckBox)findViewById(R.id.cb_crypto_signature); mCryptoSignatureCheckbox = (CheckBox)findViewById(R.id.cb_crypto_signature);
mCryptoSignatureUserId = (TextView)findViewById(R.id.userId); mCryptoSignatureUserId = (TextView)findViewById(R.id.userId);