Compose: Set focus to the To field by default

We initialize the focus with setNewMessageFocus(), but it's only called
from processSourceMessage() (for EDIT_DRAFT) initFromIntent() (for other
actions, except for "new draft").  We didn't intialize the focus for new
drafts.  Let's just get the To field to get the focus by default to
cover this case.

Bug 4048238

Change-Id: I50cd69b8813198c96beab2025576d390520dc6a4
This commit is contained in:
Makoto Onuki 2011-03-22 11:43:12 -07:00
parent ca64197427
commit ae72ec88ce
1 changed files with 1 additions and 0 deletions

View File

@ -593,6 +593,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
mMessageContentView.setOnFocusChangeListener(this);
updateAttachmentContainer();
mToView.requestFocus();
}
/**