mirror of
https://github.com/FossifyOrg/Phone.git
synced 2026-04-20 15:27:14 -04: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