keep the plus sign in the number

This commit is contained in:
Mysochenko Yuriy
2022-05-27 08:20:50 +03:00
parent b24f2455dc
commit d6b7d4c23f

View File

@ -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)