Merge "Request focus in field when cc/bcc is toggled."

This commit is contained in:
Ben Komalo 2011-10-21 08:38:32 -07:00 committed by Android (Google) Code Review
commit 1fb0b605e2

View File

@ -1536,9 +1536,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();
}
}
/**