javauis/eswt_akn/eswtdirectcontent/native/src/swtdccontrol.cpp
branchRCL_3
changeset 25 9ac0a0a7da70
parent 24 0fd27995241b
child 60 6c158198356e
--- a/javauis/eswt_akn/eswtdirectcontent/native/src/swtdccontrol.cpp	Tue May 11 16:07:20 2010 +0300
+++ b/javauis/eswt_akn/eswtdirectcontent/native/src/swtdccontrol.cpp	Tue May 25 12:34:19 2010 +0300
@@ -230,6 +230,7 @@
              ((iLastFadeMessage == KEikMessageUnfadeWindows) ||
               (iLastFadeMessage == KEikMessageFadeAllWindows)))
     {
+#ifdef SWTDCCONTROL_DSA_ENABLED
         TBool isFaded = iLastFadeMessage == KEikMessageFadeAllWindows;
 
         DEBUG_INT("CSwtDCControl::HandleResourceChange(): isFaded=%d", isFaded);
@@ -243,7 +244,7 @@
                 iContent->MdcContainerVisibilityChanged(!isFaded);
             }
         }
-
+#endif
         iLastFadeMessage = 0;
     }
 
@@ -422,7 +423,16 @@
         }
     }
 #else
-    (void)aFocused; //Supresses compilation warning
+    DEBUG_INT("CSwtDCControl::HandleAppFocusChangeL(): aFocused=%d", aFocused);
+
+    // Hide anytime, but show only when visibility conditions are fulfilled
+    if (!aFocused || IsContentVisibilityAllowed())
+    {
+        if (iContent)
+        {
+            iContent->MdcContainerVisibilityChanged(aFocused);
+        }
+    }
 #endif
 }
 
@@ -509,6 +519,9 @@
 {
     DEBUG_INT("CSwtDCControl::MdcGetDSAResources()+ eswt_thread=%d", aIsInUiThread);
 
+    // To avoid compilation warnings
+    (void)aIsInUiThread;
+
     iDcObserver->InvokeDSAResourcesCallback(*this,
                                             aConsumer);
     DEBUG("CSwtDCControl::MdcGetDSAResources()-");