diff options
-rwxr-xr-x | nci/jni/NativeNfcManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp index 880d93c5..a0428fdf 100755 --- a/nci/jni/NativeNfcManager.cpp +++ b/nci/jni/NativeNfcManager.cpp @@ -642,7 +642,7 @@ void *p2p_prio_logic_multiprotocol(void *arg) ALOGD ("%s: enter", __FUNCTION__); /* Do not need if it is already in screen off state */ - if ((getScreenState() != (NFA_SCREEN_STATE_OFF_LOCKED || NFA_SCREEN_STATE_OFF_UNLOCKED))) + if (!(getScreenState() & (NFA_SCREEN_STATE_OFF_LOCKED | NFA_SCREEN_STATE_OFF_UNLOCKED))) { /* Stop polling */ if (sRfEnabled) |