bluetoothengine/btnotif/src/BTNInquiAO.cpp
branchRCL_3
changeset 14 2f88a7d66f50
parent 0 f63038272f30
child 16 95674584745d
--- a/bluetoothengine/btnotif/src/BTNInquiAO.cpp	Tue Apr 27 16:49:44 2010 +0300
+++ b/bluetoothengine/btnotif/src/BTNInquiAO.cpp	Tue May 11 16:23:08 2010 +0300
@@ -51,6 +51,14 @@
     {
     FLOG(_L("[BTNOTIF]\t CBTInqUI::IssueRequestL()"));
     
+    if (reinterpret_cast<CBTNotifierBase*>(iDevSearchObserver)->AutoLockOnL())
+        {
+        // Cancel bt inquiry immediately if device is locked.
+        FLOG(_L("[BTNOTIF]\t CBTInqUI::IssueRequestL() Device is locked"));
+        Cancel();
+        return;
+        }
+    
     TUint action = 0; 
     if( !iPageForName )
         {