Merge "Re-enable dynamic UICC idle timeout switching." into jb-mr2-dev
diff --git a/nci/jni/SecureElement.cpp b/nci/jni/SecureElement.cpp
index 1c5a6de..0448b60 100755
--- a/nci/jni/SecureElement.cpp
+++ b/nci/jni/SecureElement.cpp
@@ -686,6 +686,9 @@
     // Disable RF discovery completely while the DH is connected
     android::startRfDiscovery(false);
 
+    // Disable UICC idle timeout while the DH is connected
+    android::setUiccIdleTimeout (false);
+
     mNewSourceGate = 0;
 
     if (gGatePipe == -1)
@@ -869,11 +872,14 @@
 
     mIsPiping = false;
 
+    // Re-enable UICC low-power mode
+    android::setUiccIdleTimeout (true);
     // Re-enable RF discovery
     // Note that it only effactuates the current configuration,
     // so if polling/listening were configured OFF (forex because
     // the screen was off), they will stay OFF with this call.
     android::startRfDiscovery(true);
+
     return true;
 }