Don't block call from contacts

This commit is contained in:
xynngh 2020-05-07 18:24:28 +04:00
parent 28b7a9ca55
commit 6bd09c89c2
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ public class CallReceiver extends BroadcastReceiver {
NumberInfo numberInfo = DatabaseSingleton.getNumberInfo(incomingNumber); NumberInfo numberInfo = DatabaseSingleton.getNumberInfo(incomingNumber);
boolean blocked = false; boolean blocked = false;
if (!isOnCall && numberInfo.rating == NumberInfo.Rating.NEGATIVE if (blockCalls && !isOnCall && numberInfo.rating == NumberInfo.Rating.NEGATIVE
&& blockCalls) { && numberInfo.contactItem == null) {
blocked = rejectCall(context); blocked = rejectCall(context);
if (blocked) { if (blocked) {