Don't block call from contacts
This commit is contained in:
parent
28b7a9ca55
commit
6bd09c89c2
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue