updating commons

This commit is contained in:
tibbi 2021-04-05 21:15:19 +02:00
parent f2ee812339
commit b8f0457494
7 changed files with 7 additions and 7 deletions

View File

@ -55,6 +55,6 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:11624254b2'
implementation 'com.github.SimpleMobileTools:Simple-Commons:9e7ab2f67d'
implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a'
}

View File

@ -44,7 +44,7 @@ class DialpadActivity : SimpleActivity() {
}
speedDialValues = config.getSpeedDialValues()
privateCursor = getMyContactsCursor()?.loadInBackground()
privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
dialpad_0_holder.setOnClickListener { dialpadPressed('0', it) }
dialpad_1.setOnClickListener { dialpadPressed('1', it) }

View File

@ -72,7 +72,7 @@ class ContactsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
}
override fun refreshItems() {
val privateCursor = context?.getMyContactsCursor()?.loadInBackground()
val privateCursor = context?.getMyContactsCursor(false, true)?.loadInBackground()
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
allContacts = contacts

View File

@ -44,7 +44,7 @@ class FavoritesFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
}
override fun refreshItems() {
val privateCursor = context?.getMyFavoriteContactsCursor()?.loadInBackground()
val privateCursor = context?.getMyContactsCursor(true, true)?.loadInBackground()
SimpleContactsHelper(context).getAvailableContacts(true) { contacts ->
allContacts = contacts

View File

@ -45,7 +45,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
}
override fun refreshItems() {
val privateCursor = context?.getMyContactsCursor()?.loadInBackground()
val privateCursor = context?.getMyContactsCursor(false, true)?.loadInBackground()
val groupSubsequentCalls = context?.config?.groupSubsequentCalls ?: false
RecentsHelper(context).getRecentCalls(groupSubsequentCalls) { recents ->
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->

View File

@ -74,7 +74,7 @@ class CallManager {
callback(callContact)
} else {
Handler(Looper.getMainLooper()).post {
val privateCursor = context.getMyContactsCursor()?.loadInBackground()
val privateCursor = context.getMyContactsCursor(false, true)?.loadInBackground()
ensureBackgroundThread {
val privateContacts = MyContactsContentProvider.getSimpleContacts(context, privateCursor)
val privateContact = privateContacts.firstOrNull { it.doesContainPhoneNumber(callContact.number) }

View File

@ -15,7 +15,7 @@ class RecentsHelper(private val context: Context) {
@SuppressLint("MissingPermission")
fun getRecentCalls(groupSubsequentCalls: Boolean, callback: (ArrayList<RecentCall>) -> Unit) {
val privateCursor = context.getMyContactsCursor()?.loadInBackground()
val privateCursor = context.getMyContactsCursor(false, true)?.loadInBackground()
ensureBackgroundThread {
if (!context.hasPermission(PERMISSION_READ_CALL_LOG)) {
callback(ArrayList())