From 2f105a0543ea293e7a0f3515d0c900ab65e2b7ba Mon Sep 17 00:00:00 2001 From: Ben Komalo Date: Thu, 20 Oct 2011 17:26:16 -0700 Subject: [PATCH] Request focus in field when cc/bcc is toggled. Bug: 3090788 Change-Id: I184dfe586199af9bcb016f60bf97bcd4382b4f73 --- src/com/android/email/activity/MessageCompose.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java index 1d2a0481e..c69d9cfbd 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -1532,9 +1532,12 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus } private void showCcBccFields() { - mCcBccContainer.setVisibility(View.VISIBLE); - UiUtilities.setVisibilitySafe(this, R.id.add_cc_bcc, View.INVISIBLE); - invalidateOptionsMenu(); + if (mCcBccContainer.getVisibility() != View.VISIBLE) { + mCcBccContainer.setVisibility(View.VISIBLE); + mCcView.requestFocus(); + UiUtilities.setVisibilitySafe(this, R.id.add_cc_bcc, View.INVISIBLE); + invalidateOptionsMenu(); + } } /**