Dumb fix for `isOnCall` state
This commit is contained in:
parent
8ff8a52936
commit
96be593bfd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue