Merge "Add StatsLog for SecureNfc state"
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java
index 76abaeb..f52ba0c 100644
--- a/src/com/android/nfc/NfcService.java
+++ b/src/com/android/nfc/NfcService.java
@@ -946,6 +946,10 @@
             if (mIsHceCapable) {
                 mCardEmulationManager.onSecureNfcToggled();
             }
+            if (enable)
+                StatsLog.write(StatsLog.NFC_STATE_CHANGED, StatsLog.NFC_STATE_CHANGED__STATE__ON_LOCKED);
+            else
+                StatsLog.write(StatsLog.NFC_STATE_CHANGED, StatsLog.NFC_STATE_CHANGED__STATE__ON);
             return true;
         }