Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2ea2ebbd authored by Katherine Kuan's avatar Katherine Kuan
Browse files

Account header icon cut off in contact editor for local contacts

Bug: 5298440
Change-Id: I9dfe60ef1c2b81c96f9b785d734031839a62d758
parent 7e52b539
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -38,18 +38,20 @@

        <TextView
            android:id="@+id/account_type"
            android:layout_width="wrap_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:singleLine="true" />
            android:singleLine="true"
            android:ellipsize="end" />

        <TextView
             android:id="@+id/account_name"
             android:layout_width="wrap_content"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:textAppearance="?android:attr/textAppearanceSmall"
             android:textColor="?android:attr/textColorTertiary"
             android:singleLine="true" />
             android:singleLine="true"
             android:ellipsize="end" />

    </LinearLayout>

+10 −12
Original line number Diff line number Diff line
@@ -29,37 +29,35 @@
    <LinearLayout
        android:id="@+id/account"
        android:layout_height="wrap_content"
        android:layout_width="wrap_content"
        android:layout_width="0dip"
        android:layout_weight="1"
        android:orientation="vertical"
        style="?android:attr/spinnerStyle">

        <TextView
            android:id="@+id/account_type"
            android:layout_width="wrap_content"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:singleLine="true" />
            android:singleLine="true"
            android:ellipsize="end" />

        <TextView
             android:id="@+id/account_name"
             android:layout_width="wrap_content"
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:paddingRight="8dip"
             android:textAppearance="?android:attr/textAppearanceSmall"
             android:textColor="?android:attr/textColorTertiary"
             android:singleLine="true" />
             android:singleLine="true"
             android:ellipsize="end" />

    </LinearLayout>

    <!-- Spacer between the account type / name dropdown and the account icon -->
    <View
        android:layout_width="0dip"
        android:layout_height="match_parent"
        android:layout_weight="1"/>

    <FrameLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent">
        android:layout_height="match_parent"
        android:layout_marginLeft="10dip">

        <ImageView
             android:id="@+id/account_icon"
+4 −0
Original line number Diff line number Diff line
@@ -148,8 +148,12 @@ public class ExternalRawContactEditorView extends BaseRawContactEditorView
                accountType = mContext.getString(R.string.account_phone);
            }
            if (!TextUtils.isEmpty(mAccountName)) {
                mAccountNameTextView.setVisibility(View.VISIBLE);
                mAccountNameTextView.setText(
                        mContext.getString(R.string.from_account_format, mAccountName));
            } else {
                // Hide this view so the other text view will be centered vertically
                mAccountNameTextView.setVisibility(View.GONE);
            }
            mAccountTypeTextView.setText(mContext.getString(R.string.account_type_format,
                    accountType));
+4 −0
Original line number Diff line number Diff line
@@ -195,8 +195,12 @@ public class RawContactEditorView extends BaseRawContactEditorView {
                accountType = mContext.getString(R.string.account_phone);
            }
            if (!TextUtils.isEmpty(accountName)) {
                mAccountNameTextView.setVisibility(View.VISIBLE);
                mAccountNameTextView.setText(
                        mContext.getString(R.string.from_account_format, accountName));
            } else {
                // Hide this view so the other text view will be centered vertically
                mAccountNameTextView.setVisibility(View.GONE);
            }
            mAccountTypeTextView.setText(
                    mContext.getString(R.string.account_type_format, accountType));