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

Commit 1d2db442 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Phonetic name field underlines stretch across" into oc-dev

parents a98d1c44 eda7e560
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,6 +43,6 @@
    <include
        android:id="@+id/delete_button_container"
        layout="@layout/edit_delete_button"
        android:visibility="gone" />
        android:visibility="invisible" />

</com.android.contacts.editor.TextFieldsEditorView>
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public abstract class LabeledEditorView extends LinearLayout implements Editor,

    private Spinner mLabel;
    private EditTypeAdapter mEditTypeAdapter;
    private View mDeleteContainer;
    protected View mDeleteContainer;
    private ImageView mDelete;

    private DataKind mKind;
@@ -230,7 +230,7 @@ public abstract class LabeledEditorView extends LinearLayout implements Editor,
            mDeleteContainer.setVisibility(View.VISIBLE);
            mDelete.setEnabled(!mReadOnly && isEnabled());
        } else {
            mDeleteContainer.setVisibility(View.GONE);
            mDeleteContainer.setVisibility(View.INVISIBLE);
        }
    }

+4 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.content.res.Resources;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.View;

import com.android.contacts.R;
import com.android.contacts.model.RawContactDelta;
@@ -73,6 +74,9 @@ public class StructuredNameEditorView extends TextFieldsEditorView {
            mChanged = false;
        }
        updateEmptiness();
        // Right alien with rest of the editors. As this view has an extra expand/collapse view on
        // the right, we need to free the space from deleteContainer
        mDeleteContainer.setVisibility(View.GONE);
    }

    @Override