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

Commit 108f7837 authored by Tingting Wang's avatar Tingting Wang
Browse files

Add content description for no name and starred header.

BUG 30125507

Change-Id: Ia5d2be51eba88f3d59afa591f8f3aedf175efbc9
parent 362b733e
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -984,6 +984,15 @@ public class ContactListItemView extends ViewGroup
            setMarqueeText(mHeaderTextView, title);
            mHeaderTextView.setVisibility(View.VISIBLE);
            mHeaderTextView.setAllCaps(true);
            if (ContactsSectionIndexer.BLANK_HEADER_STRING.equals(title)) {
                // No name header (...)
                mHeaderTextView.setContentDescription(
                        getContext().getString(R.string.description_no_name_header));
            } else if (getContext().getString(R.string.star_sign).equals(title)) {
                // Starred header
                mHeaderTextView.setContentDescription(
                        getContext().getString(R.string.list_filter_all_starred));
            }
        } else if (mHeaderTextView != null) {
            mHeaderTextView.setVisibility(View.GONE);
        }
+2 −1
Original line number Diff line number Diff line
@@ -27,10 +27,11 @@ import java.util.Arrays;
 */
public class ContactsSectionIndexer implements SectionIndexer {

    protected static final String BLANK_HEADER_STRING = "\u2026"; // ellipsis

    private String[] mSections;
    private int[] mPositions;
    private int mCount;
    private static final String BLANK_HEADER_STRING = "\u2026"; // ellipsis

    /**
     * Constructor.