mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Set contact info in download phase
This commit is contained in:
@@ -201,7 +201,7 @@ public class EntityMessage implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
void getAvatar(Context context) {
|
||||
boolean setContactInfo(Context context) {
|
||||
if (ContextCompat.checkSelfPermission(context, Manifest.permission.READ_CONTACTS)
|
||||
== PackageManager.PERMISSION_GRANTED) {
|
||||
this.avatar = null;
|
||||
@@ -234,6 +234,8 @@ public class EntityMessage implements Serializable {
|
||||
|
||||
if (!TextUtils.isEmpty(displayName))
|
||||
((InternetAddress) this.from[i]).setPersonal(displayName);
|
||||
|
||||
return true;
|
||||
}
|
||||
} finally {
|
||||
if (cursor != null)
|
||||
@@ -244,6 +246,8 @@ public class EntityMessage implements Serializable {
|
||||
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static String getQuote(Context context, long id) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user