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

Commit 2b375033 authored by Tingting Wang's avatar Tingting Wang Committed by Android (Google) Code Review
Browse files

Merge "Set delete button description for editor view without type."

parents 5e19c23a cfa628c4
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -300,8 +300,8 @@ public abstract class LabeledEditorView extends LinearLayout implements Editor,
                            mEntry.getAsString(mType.customColumn),
                            getContext().getString(mKind.titleRes)));
        } else {
            mLabel.setSelection(mEditTypeAdapter.getPosition(mType));
            if (mType != null) {
                mLabel.setSelection(mEditTypeAdapter.getPosition(mType));
                mDeleteContainer.setContentDescription(
                        getContext().getString(R.string.editor_delete_view_description,
                                getContext().getString(mType.labelRes),
@@ -408,11 +408,9 @@ public abstract class LabeledEditorView extends LinearLayout implements Editor,
        mLabel.setEnabled(!readOnly && isEnabled());
        mLabel.setContentDescription(getContext().getResources().getString(mKind.titleRes));

        if (hasTypes) {
        mType = RawContactModifier.getCurrentType(entry, kind);
        rebuildLabel();
    }
    }

    public ValuesDelta getValues() {
        return mEntry;