Only pause the adaptor when all the windows are hidden 71/204671/4
authorRichard Huang <r.huang@samsung.com>
Thu, 25 Apr 2019 10:32:48 +0000 (11:32 +0100)
committerRichard Huang <r.huang@samsung.com>
Thu, 25 Apr 2019 14:33:51 +0000 (15:33 +0100)
Change-Id: I757abc5e74a36869c68801adf144243313e8986b

dali/internal/adaptor/common/adaptor-impl.cpp

index d36c352..d943263 100755 (executable)
@@ -859,10 +859,25 @@ void Adaptor::OnWindowHidden()
 {
   if ( RUNNING == mState )
   {
-    Pause();
+    bool allWindowsHidden = true;
 
-    // Adaptor cannot be resumed until the window is shown
-    mState = PAUSED_WHILE_HIDDEN;
+    for( WindowPtr window : mWindows )
+    {
+      if ( window->IsVisible() )
+      {
+        allWindowsHidden = false;
+        break;
+      }
+    }
+
+    // Only pause the adaptor when all the windows are hidden
+    if ( allWindowsHidden )
+    {
+      Pause();
+
+      // Adaptor cannot be resumed until any window is shown
+      mState = PAUSED_WHILE_HIDDEN;
+    }
   }
   else
   {