Request focus in field when cc/bcc is toggled.

Bug: 3090788
Change-Id: I184dfe586199af9bcb016f60bf97bcd4382b4f73
This commit is contained in:
Ben Komalo 2011-10-20 17:26:16 -07:00
parent 41495761db
commit 2f105a0543

View File

@ -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();
}
}
/**