<!-- looks like Widget.TextView.ListSeparator -->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/account_name"
- android:background="@drawable/section_dark"
+ android:background="@drawable/bg_infobar_new"
android:layout_width="fill_parent"
android:layout_height="@dimen/account_name_height"
android:layout_below="@+id/tab_scroll_view"
<string name="split_explanation">Make this data its own contact.</string>
<!-- Formatting string for account name -->
- <string name="account_name_format">From account: <xliff:g id="account" example="user@gmail.com">%s</xliff:g></string>
+ <string name="account_name_format">From <xliff:g id="source" example="Gmail">%1$s</xliff:g> account: <xliff:g id="account" example="user@gmail.com">%2$s</xliff:g></string>
</resources>
continue;
}
+ final ContactsSource source = sources.getInflatedSource(accountType,
+ ContactsSource.LEVEL_SUMMARY);
final String accountName = entValues.getAsString(RawContacts.ACCOUNT_NAME);
- mAccountName.setText(getString(R.string.account_name_format, accountName));
+ mAccountName.setText(getString(R.string.account_name_format,
+ source.getDisplayLabel(this), accountName));
for (NamedContentValues subValue : entity.getSubValues()) {
ViewEntry entry = new ViewEntry();
final ContactsSource source = sources.getInflatedSource(accountType,
ContactsSource.LEVEL_CONSTRAINTS);
- mAccountName.setText(getString(R.string.account_name_format, accountName));
+ mAccountName.setText(getString(R.string.account_name_format,
+ source.getDisplayLabel(this), accountName));
+ mAccountName.setVisibility(View.VISIBLE);
// Assign editor state based on entity and source
mEditor.setState(entity, source);