mirror of
https://github.com/thunderbird/thunderbird-android.git
synced 2024-09-20 04:02:14 +02:00
#7618 focus subject or content field on external intent
This commit is contained in:
parent
98f0d4ffa4
commit
621085292b
@ -370,8 +370,8 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
||||
relatedMessageProcessed = savedInstanceState.getBoolean(STATE_KEY_SOURCE_MESSAGE_PROCED, false);
|
||||
}
|
||||
|
||||
|
||||
if (initFromIntent(intent)) {
|
||||
boolean startedByExternalIntent = initFromIntent(intent);
|
||||
if (startedByExternalIntent) {
|
||||
action = Action.COMPOSE;
|
||||
changesMadeSinceLastSave = true;
|
||||
} else {
|
||||
@ -446,6 +446,13 @@ public class MessageCompose extends K9Activity implements OnClickListener,
|
||||
action == Action.EDIT_DRAFT) {
|
||||
//change focus to message body.
|
||||
messageContentView.requestFocus();
|
||||
} else if (startedByExternalIntent) {
|
||||
// If started by external intent, focus "Subject" or content field (Issue #7618)
|
||||
if(subjectView.getText().length() == 0) {
|
||||
subjectView.requestFocus();
|
||||
} else {
|
||||
messageContentView.requestFocus();
|
||||
}
|
||||
} else {
|
||||
// Explicitly set focus to "To:" input field (see issue 2998)
|
||||
recipientMvpView.requestFocusOnToField();
|
||||
|
Loading…
Reference in New Issue
Block a user