Fix an issue the Adaptor is not resumed 73/241073/1
authorHeeyong Song <heeyong.song@samsung.com>
Fri, 14 Aug 2020 08:41:57 +0000 (17:41 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 14 Aug 2020 08:41:57 +0000 (17:41 +0900)
The adaptor is not resumed when the window is hidden and shown again before the adaptor is started.
Fixed to resume the adaptor in the case

Change-Id: I7fb5d3af081fbdcd3fb5390b3c823d1f9b942e11

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

index b94f90d..b598079 100644 (file)
@@ -950,6 +950,11 @@ void Adaptor::OnWindowShown()
 
     DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: Update requested.\n" );
   }
+  else if( PAUSED_WHILE_INITIALIZING == mState )
+  {
+    // Change the state to READY again. It will be changed to RUNNING after the adaptor is started.
+    mState = READY;
+  }
   else
   {
     DALI_LOG_RELEASE_INFO( "Adaptor::OnWindowShown: Adaptor is not paused state.[%d]\n", mState );