0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-20 04:02:14 +02:00

Revert "#7618 focus subject or content field on external intent"

This unintentionally changed the behavior when handling share intents.

This reverts commit 621085292b.
This reverts commit 89c7a36028.
This commit is contained in:
cketti 2024-02-14 18:49:29 +01:00
parent a474272276
commit 0dbba54e7e

View File

@ -372,8 +372,8 @@ public class MessageCompose extends K9Activity implements OnClickListener,
relatedMessageProcessed = savedInstanceState.getBoolean(STATE_KEY_SOURCE_MESSAGE_PROCED, false);
}
boolean startedByExternalIntent = initFromIntent(intent);
if (startedByExternalIntent) {
if (initFromIntent(intent)) {
action = Action.COMPOSE;
changesMadeSinceLastSave = true;
} else {
@ -452,13 +452,6 @@ 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();