updating commons
This commit is contained in:
parent
47cba56e31
commit
cc04594d31
7 changed files with 8 additions and 8 deletions
|
|
@ -669,7 +669,7 @@ fun Context.getThreadId(addresses: Set<String>): Long {
|
|||
}
|
||||
|
||||
fun Context.showReceivedMessageNotification(address: String, body: String, threadId: Long, bitmap: Bitmap?) {
|
||||
val privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
|
||||
val privateCursor = getMyContactsCursor(false, true)
|
||||
ensureBackgroundThread {
|
||||
val senderName = getNameFromAddress(address, privateCursor)
|
||||
|
||||
|
|
@ -689,7 +689,7 @@ fun Context.getNameFromAddress(address: String, privateCursor: Cursor?): String
|
|||
}
|
||||
|
||||
fun Context.getContactFromAddress(address: String, callback: ((contact: SimpleContact?) -> Unit)) {
|
||||
val privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
|
||||
val privateCursor = getMyContactsCursor(false, true)
|
||||
SimpleContactsHelper(this).getAvailableContacts(false) {
|
||||
val contact = it.firstOrNull { it.doesHavePhoneNumber(address) }
|
||||
if (contact == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue