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

Commit f7899c04 authored by Wenyi Wang's avatar Wenyi Wang
Browse files

Use CONTENT_URI to load phone numbers

We encountered this bug because CONTENT_FILTER_URI was used to load
phone numbers by mistake. This CL reverted the line back to how it
looked after ag/347569.

Bug 26450705

Change-Id: I34428dfc4f5786611647dd881299d0147dd0b27d
parent 7470d095
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ public class PhoneNumberListAdapter extends ContactEntryListAdapter {
    // A list of extended directories to add to the directories from the database
    private final List<DirectoryPartition> mExtendedDirectories;

    // Extended directories will have ID's that are higher than any of the id's from the database.
    // Thi sis so that we can identify them and set them up properly. If no extended directories
    // Extended directories will have ID's that are higher than any of the id's from the database,
    // so that we can identify them and set them up properly. If no extended directories
    // exist, this will be Long.MAX_VALUE
    private long mFirstExtendedDirectoryId = Long.MAX_VALUE;

@@ -210,8 +210,7 @@ public class PhoneNumberListAdapter extends ContactEntryListAdapter {
                            String.valueOf(getDirectoryResultLimit(getDirectoryById(directoryId))));
                }
            } else {
                Uri baseUri = mUseCallableUri ? CallableCompat.getContentFilterUri()
                        : PhoneCompat.getContentFilterUri();
                Uri baseUri = mUseCallableUri ? Callable.CONTENT_URI : Phone.CONTENT_URI;
                builder = baseUri.buildUpon().appendQueryParameter(
                        ContactsContract.DIRECTORY_PARAM_KEY, String.valueOf(Directory.DEFAULT));
                if (isSectionHeaderDisplayEnabled()) {