diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/CallReceiver.java b/app/src/main/java/dummydomain/yetanothercallblocker/CallReceiver.java index badafd1..e180081 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/CallReceiver.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/CallReceiver.java @@ -24,7 +24,7 @@ public class CallReceiver extends BroadcastReceiver { private static final Logger LOG = LoggerFactory.getLogger(CallReceiver.class); - private boolean isOnCall; // TODO: check: is this object not destroyed in-between calls? + private static boolean isOnCall; // TODO: proper handling public static boolean isEnabled(Context context) { return context.getPackageManager() @@ -40,8 +40,6 @@ public class CallReceiver extends BroadcastReceiver { PackageManager.DONT_KILL_APP); } - // TODO: handle in-call calls - @Override public void onReceive(Context context, Intent intent) { if (!TelephonyManager.ACTION_PHONE_STATE_CHANGED.equals(intent.getAction())) return;