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 commit621085292b
. This reverts commit89c7a36028
.
This commit is contained in:
parent
a474272276
commit
0dbba54e7e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user