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
diff --git a/src/com/android/contacts/common/list/PhoneNumberListAdapter.java b/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
index 7928477..e39db3a 100644
--- a/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
+++ b/src/com/android/contacts/common/list/PhoneNumberListAdapter.java
@@ -68,8 +68,8 @@
// 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 @@
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()) {