diff options
author | Stefan Niedermann <info@niedermann.it> | 2020-10-29 21:06:15 +0300 |
---|---|---|
committer | Stefan Niedermann <info@niedermann.it> | 2020-10-29 21:06:15 +0300 |
commit | 704273e135dacb3d0966fb5ae155662b617eca4a (patch) | |
tree | 713d0968fb9daf0e369f71372ba14c4f453fea1d /app/src/main/java/it/niedermann/nextcloud/deck/util | |
parent | d773e16a1e1c941c8445600f42adccd1213683c8 (diff) |
#289 📎 Add more sources to upload attachments
Fix contact picker
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app/src/main/java/it/niedermann/nextcloud/deck/util')
-rw-r--r-- | app/src/main/java/it/niedermann/nextcloud/deck/util/VCardUtil.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/util/VCardUtil.java b/app/src/main/java/it/niedermann/nextcloud/deck/util/VCardUtil.java index 4350f4874..b0e971082 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/util/VCardUtil.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/util/VCardUtil.java @@ -16,9 +16,9 @@ public class VCardUtil { // You shall not pass } - public static Uri getVCardContentUri(@NonNull Context context) throws NoSuchElementException { + public static Uri getVCardContentUri(@NonNull Context context, @NonNull Uri contactUri) throws NoSuchElementException { final ContentResolver cr = context.getContentResolver(); - try (final Cursor cursor = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null)) { + try (final Cursor cursor = cr.query(contactUri, null, null, null, null)) { if (cursor.moveToFirst()) { final String lookupKey = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY)); return Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_VCARD_URI, lookupKey); |