From f8dbd95695648c758ccb84235a2fab74ed80b56a Mon Sep 17 00:00:00 2001 From: Jorge Lugo Date: Wed, 13 Jul 2011 18:54:51 -0700 Subject: [PATCH] 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 --- 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 9a3f63313..6c2031349 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -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);