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

Commit 643db51d authored by Brian Attwell's avatar Brian Attwell
Browse files

Prioritize regular names over phonetic names. P1

Bug: 19587274
Change-Id: I503c0fff6da30b9f1d6b6cbeaedfc4d9314f8a00
parent 3062e570
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24897,6 +24897,7 @@ package android.provider {
    field public static final int ORGANIZATION = 30; // 0x1e
    field public static final int PHONE = 20; // 0x14
    field public static final int STRUCTURED_NAME = 40; // 0x28
    field public static final int STRUCTURED_PHONETIC_NAME = 37; // 0x25
    field public static final int UNDEFINED = 0; // 0x0
  }
+1 −0
Original line number Diff line number Diff line
@@ -26496,6 +26496,7 @@ package android.provider {
    field public static final int ORGANIZATION = 30; // 0x1e
    field public static final int PHONE = 20; // 0x14
    field public static final int STRUCTURED_NAME = 40; // 0x28
    field public static final int STRUCTURED_PHONETIC_NAME = 37; // 0x25
    field public static final int UNDEFINED = 0; // 0x0
  }
+4 −1
Original line number Diff line number Diff line
@@ -1010,7 +1010,8 @@ public final class ContactsContract {
    /**
     * Types of data used to produce the display name for a contact. In the order
     * of increasing priority: {@link #EMAIL}, {@link #PHONE},
     * {@link #ORGANIZATION}, {@link #NICKNAME}, {@link #STRUCTURED_NAME}.
     * {@link #ORGANIZATION}, {@link #NICKNAME}, {@link #STRUCTURED_PHONETIC_NAME},
     * {@link #STRUCTURED_NAME}.
     */
    public interface DisplayNameSources {
        public static final int UNDEFINED = 0;
@@ -1018,6 +1019,8 @@ public final class ContactsContract {
        public static final int PHONE = 20;
        public static final int ORGANIZATION = 30;
        public static final int NICKNAME = 35;
        /** Display name comes from a structured name that only has phonetic components. */
        public static final int STRUCTURED_PHONETIC_NAME = 37;
        public static final int STRUCTURED_NAME = 40;
    }