Always show from field in compose
This info used to be shown in the top right of the status bar in GB but that is no longer there. So before this change there was no way to tell who you were sending as. Bug: 5069124 Change-Id: I10d687a5fd221e65ecfc71b61cccf306492e27b8
This commit is contained in:
parent
48a3a1c51c
commit
2903be7f3e
|
@ -35,6 +35,18 @@
|
|||
android:visibility="gone"
|
||||
/>
|
||||
|
||||
<!-- Not actually editable -->
|
||||
<TextView
|
||||
android:id="@+id/from"
|
||||
style="?android:attr/editTextStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dip"
|
||||
android:layout_marginRight="6dip"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="?android:attr/textColorSecondary"
|
||||
/>
|
||||
|
||||
<include android:id="@+id/to"
|
||||
layout="@layout/address_text_view"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -345,6 +345,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||
throw new IllegalArgumentException();
|
||||
}
|
||||
mAccount = account;
|
||||
mFromView.setText(account.mEmailAddress);
|
||||
mAddressAdapterTo
|
||||
.setAccount(new android.accounts.Account(account.mEmailAddress, "unknown"));
|
||||
mAddressAdapterCc
|
||||
|
@ -352,11 +353,6 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||
mAddressAdapterBcc
|
||||
.setAccount(new android.accounts.Account(account.mEmailAddress, "unknown"));
|
||||
|
||||
if (mFromView != null) {
|
||||
// Some configurations don't show the from field.
|
||||
mFromView.setText(account.mEmailAddress);
|
||||
}
|
||||
|
||||
new QuickResponseChecker(mTaskTracker).executeParallel((Void) null);
|
||||
}
|
||||
|
||||
|
@ -676,6 +672,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||
mBccView.setHint(R.string.message_compose_bcc_hint);
|
||||
}
|
||||
|
||||
mFromView = UiUtilities.getView(this, R.id.from);
|
||||
mCcBccContainer = UiUtilities.getView(this, R.id.cc_bcc_container);
|
||||
mSubjectView = UiUtilities.getView(this, R.id.subject);
|
||||
mMessageContentView = UiUtilities.getView(this, R.id.message_content);
|
||||
|
@ -733,7 +730,6 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||
|
||||
mMessageContentView.setOnFocusChangeListener(this);
|
||||
|
||||
mFromView = UiUtilities.getViewOrNull(this, R.id.from);
|
||||
mActionSpinner = UiUtilities.getViewOrNull(this, R.id.action_spinner);
|
||||
|
||||
updateAttachmentContainer();
|
||||
|
|
Loading…
Reference in New Issue