updating commons

This commit is contained in:
tibbi 2022-02-07 11:44:15 +01:00
parent ec9ab4dc4b
commit b65297fea8
7 changed files with 7 additions and 7 deletions

View File

@ -61,6 +61,6 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:502e50889e'
implementation 'com.github.SimpleMobileTools:Simple-Commons:332725a9fc'
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
}

View File

@ -45,7 +45,7 @@ class DialpadActivity : SimpleActivity() {
}
speedDialValues = config.getSpeedDialValues()
privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
privateCursor = getMyContactsCursor(false, true)
if (hasRussianLocale) {
initRussianChars()

View File

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

View File

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

View File

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

View File

@ -52,7 +52,7 @@ class CallManager {
}
fun getCallContact(context: Context, callback: (CallContact?) -> Unit) {
val privateCursor = context.getMyContactsCursor(false, true)?.loadInBackground()
val privateCursor = context.getMyContactsCursor(false, true)
ensureBackgroundThread {
val callContact = CallContact("", "", "", "")
val handle = try {

View File

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