Commit 16d99c39 by zhangchengbo

fix:去除子线程,SmsReceiver调用处中已使用

parent bd9fd29a
......@@ -33,7 +33,7 @@ class ContactsHelper(val context: Context) {
showOnlyContactsWithNumbers: Boolean = context.baseConfig.showOnlyContactsWithNumbers,
callback: (ArrayList<Contact>) -> Unit
) {
ensureBackgroundThread {
// ensureBackgroundThread {
val contacts = SparseArray<Contact>()
displayContactSources = context.getVisibleContactSources()
......@@ -94,10 +94,10 @@ class ContactsHelper(val context: Context) {
Contact.startWithSurname = context.baseConfig.startNameWithSurname
resultContacts.sort()
Handler(Looper.getMainLooper()).post {
// Handler(Looper.getMainLooper()).post {
callback(resultContacts)
}
}
// }
// }
}
private fun getContentResolverAccounts(): HashSet<ContactSource> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment