mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
keep the plus sign in the number
This commit is contained in:
@ -13,7 +13,7 @@ class SimpleCallScreeningService : CallScreeningService() {
|
||||
|
||||
override fun onScreenCall(callDetails: Call.Details) {
|
||||
val simpleContactsHelper = SimpleContactsHelper(this)
|
||||
val number = Uri.decode(callDetails.handle.toString()).substringAfter("tel:").replace("+", "")
|
||||
val number = Uri.decode(callDetails.handle.toString()).substringAfter("tel:")
|
||||
val isBlocked = baseConfig.blockUnknownNumbers && !simpleContactsHelper.exists(number)
|
||||
val response = CallResponse.Builder()
|
||||
.setDisallowCall(isBlocked)
|
||||
|
Reference in New Issue
Block a user