summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnci/jni/NativeNfcManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/nci/jni/NativeNfcManager.cpp b/nci/jni/NativeNfcManager.cpp
index 40b9539..9adeed3 100755
--- a/nci/jni/NativeNfcManager.cpp
+++ b/nci/jni/NativeNfcManager.cpp
@@ -838,6 +838,8 @@ void nfcManager_disableDiscovery (JNIEnv* e, jobject o)
if (sDiscoveryEnabled == false)
{
ALOGD ("%s: already disabled", __FUNCTION__);
+ if (! sIsSecElemSelected)
+ PowerSwitch::getInstance ().setLevel (PowerSwitch::LOW_POWER);
goto TheEnd;
}