mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-27 16:50:16 +01:00
updating commons
This commit is contained in:
parent
ec9ab4dc4b
commit
b65297fea8
@ -61,6 +61,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:502e50889e'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:332725a9fc'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ class DialpadActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
speedDialValues = config.getSpeedDialValues()
|
speedDialValues = config.getSpeedDialValues()
|
||||||
privateCursor = getMyContactsCursor(false, true)?.loadInBackground()
|
privateCursor = getMyContactsCursor(false, true)
|
||||||
|
|
||||||
if (hasRussianLocale) {
|
if (hasRussianLocale) {
|
||||||
initRussianChars()
|
initRussianChars()
|
||||||
|
@ -73,7 +73,7 @@ class ContactsFragment(context: Context, attributeSet: AttributeSet) : MyViewPag
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun refreshItems() {
|
override fun refreshItems() {
|
||||||
val privateCursor = context?.getMyContactsCursor(false, true)?.loadInBackground()
|
val privateCursor = context?.getMyContactsCursor(false, true)
|
||||||
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
|
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
|
||||||
allContacts = contacts
|
allContacts = contacts
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class FavoritesFragment(context: Context, attributeSet: AttributeSet) : MyViewPa
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun refreshItems() {
|
override fun refreshItems() {
|
||||||
val privateCursor = context?.getMyContactsCursor(true, true)?.loadInBackground()
|
val privateCursor = context?.getMyContactsCursor(true, true)
|
||||||
SimpleContactsHelper(context).getAvailableContacts(true) { contacts ->
|
SimpleContactsHelper(context).getAvailableContacts(true) { contacts ->
|
||||||
allContacts = contacts
|
allContacts = contacts
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class RecentsFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun refreshItems() {
|
override fun refreshItems() {
|
||||||
val privateCursor = context?.getMyContactsCursor(false, true)?.loadInBackground()
|
val privateCursor = context?.getMyContactsCursor(false, true)
|
||||||
val groupSubsequentCalls = context?.config?.groupSubsequentCalls ?: false
|
val groupSubsequentCalls = context?.config?.groupSubsequentCalls ?: false
|
||||||
RecentsHelper(context).getRecentCalls(groupSubsequentCalls) { recents ->
|
RecentsHelper(context).getRecentCalls(groupSubsequentCalls) { recents ->
|
||||||
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
|
SimpleContactsHelper(context).getAvailableContacts(false) { contacts ->
|
||||||
|
@ -52,7 +52,7 @@ class CallManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getCallContact(context: Context, callback: (CallContact?) -> Unit) {
|
fun getCallContact(context: Context, callback: (CallContact?) -> Unit) {
|
||||||
val privateCursor = context.getMyContactsCursor(false, true)?.loadInBackground()
|
val privateCursor = context.getMyContactsCursor(false, true)
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
val callContact = CallContact("", "", "", "")
|
val callContact = CallContact("", "", "", "")
|
||||||
val handle = try {
|
val handle = try {
|
||||||
|
@ -18,7 +18,7 @@ class RecentsHelper(private val context: Context) {
|
|||||||
|
|
||||||
@SuppressLint("MissingPermission")
|
@SuppressLint("MissingPermission")
|
||||||
fun getRecentCalls(groupSubsequentCalls: Boolean, callback: (ArrayList<RecentCall>) -> Unit) {
|
fun getRecentCalls(groupSubsequentCalls: Boolean, callback: (ArrayList<RecentCall>) -> Unit) {
|
||||||
val privateCursor = context.getMyContactsCursor(false, true)?.loadInBackground()
|
val privateCursor = context.getMyContactsCursor(false, true)
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
if (!context.hasPermission(PERMISSION_READ_CALL_LOG)) {
|
if (!context.hasPermission(PERMISSION_READ_CALL_LOG)) {
|
||||||
callback(ArrayList())
|
callback(ArrayList())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user