Dumb fix for `isOnCall` state

This commit is contained in:
xynngh 2019-12-24 17:22:17 +04:00
parent 8ff8a52936
commit 96be593bfd
1 changed files with 1 additions and 3 deletions

View File

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