mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-14 02:10:10 +01:00
updating commons
This commit is contained in:
parent
ec9ab4dc4b
commit
b65297fea8
@ -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'
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ class DialpadActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
speedDialValues = config.getSpeedDialValues()
|
||||
privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
|
||||
privateCursor = getMyContactsCursor(false, true)
|
||||
|
||||
if (hasRussianLocale) {
|
||||
initRussianChars()
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 ->
|
||||
|
@ -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 {
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user