mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Refactoring
This commit is contained in:
parent
4f1ef39c08
commit
978a5b6fb3
1 changed files with 2 additions and 1 deletions
|
@ -646,7 +646,8 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
if (cursor.moveToNext()) {
|
||||
if (true || Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {
|
||||
Uri uri = ContactsContract.Contacts.getLookupUri(
|
||||
cursor.getLong(0), cursor.getString(1));
|
||||
cursor.getLong(cursor.getColumnIndex(ContactsContract.Contacts._ID)),
|
||||
cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY)));
|
||||
InputStream is = ContactsContract.Contacts.openContactPhotoInputStream(
|
||||
getContentResolver(), uri);
|
||||
mbuilder.setLargeIcon(BitmapFactory.decodeStream(is));
|
||||
|
|
Loading…
Reference in a new issue