Skip to content

Commit

Permalink
Merge pull request #7644 from thunderbird/revert_focus_patch
Browse files Browse the repository at this point in the history
Revert "#7618 focus subject or content field on external intent"
  • Loading branch information
cketti authored Feb 15, 2024
2 parents 571ade5 + 0dbba54 commit 2f0f2a2
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
relatedMessageProcessed = savedInstanceState.getBoolean(STATE_KEY_SOURCE_MESSAGE_PROCED, false);
}

boolean startedByExternalIntent = initFromIntent(intent);
if (startedByExternalIntent) {

if (initFromIntent(intent)) {
action = Action.COMPOSE;
changesMadeSinceLastSave = true;
} else {
Expand Down Expand Up @@ -452,13 +452,6 @@ public void onTextChanged(CharSequence s, int start, int before, int count) {
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();
Expand Down

0 comments on commit 2f0f2a2

Please sign in to comment.