mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-21 05:50:41 +01:00
adding some crashfixes
This commit is contained in:
parent
007fbefb9d
commit
35b0592aac
@ -63,7 +63,7 @@ class CallManager {
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
val conference = calls.find { it.isConference() }!!
|
||||
val conference = calls.find { it.isConference() } ?: return NoCall
|
||||
val secondCall = if (conference.children.size + 1 != calls.size) {
|
||||
calls.filter { !it.isConference() }
|
||||
.subtract(conference.children.toSet())
|
||||
|
@ -13,9 +13,9 @@ import com.simplemobiletools.commons.helpers.SimpleContactsHelper
|
||||
class SimpleCallScreeningService : CallScreeningService() {
|
||||
|
||||
override fun onScreenCall(callDetails: Call.Details) {
|
||||
val simpleContactsHelper = SimpleContactsHelper(this)
|
||||
val number = Uri.decode(callDetails.handle.toString()).substringAfter("tel:")
|
||||
if (baseConfig.blockUnknownNumbers) {
|
||||
val simpleContactsHelper = SimpleContactsHelper(this)
|
||||
val number = Uri.decode(callDetails.handle?.toString()).substringAfter("tel:")
|
||||
val privateCursor = getMyContactsCursor(false, true)
|
||||
simpleContactsHelper.exists(number, privateCursor) { exists ->
|
||||
respondToCall(callDetails, !exists)
|
||||
|
Loading…
x
Reference in New Issue
Block a user