Don't show To/Cc/Bcc hint text on tablet
Since tablet already has to/cc/bcc labels, don't show the hint text -- only do so when labels don't exist. Bug: 5019806 Change-Id: I039de06e2576688e654fb0504a027cd9b9b67def
This commit is contained in:
parent
04bd9aa8b3
commit
f8dbd95695
@ -605,11 +605,14 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
||||
|
||||
private void initViews() {
|
||||
mToView = UiUtilities.getView(this, R.id.to);
|
||||
mToView.setHint(R.string.message_compose_to_hint);
|
||||
mCcView = UiUtilities.getView(this, R.id.cc);
|
||||
mCcView.setHint(R.string.message_compose_cc_hint);
|
||||
mBccView = UiUtilities.getView(this, R.id.bcc);
|
||||
mBccView.setHint(R.string.message_compose_bcc_hint);
|
||||
// add hints only when no labels exist
|
||||
if (UiUtilities.getViewOrNull(this, R.id.to_label) == null) {
|
||||
mToView.setHint(R.string.message_compose_to_hint);
|
||||
mCcView.setHint(R.string.message_compose_cc_hint);
|
||||
mBccView.setHint(R.string.message_compose_bcc_hint);
|
||||
}
|
||||
|
||||
mCcBccContainer = UiUtilities.getView(this, R.id.cc_bcc_container);
|
||||
mSubjectView = UiUtilities.getView(this, R.id.subject);
|
||||
|
Loading…
Reference in New Issue
Block a user