mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-30 11:10:05 +02:00
updating commons
This commit is contained in:
parent
f2ee812339
commit
b8f0457494
@ -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'
|
||||
}
|
||||
|
@ -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) }
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 ->
|
||||
|
@ -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) }
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user