From 13697065b4e95dc2bf5c8f66ddc7950d821dcff2 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Fri, 14 Aug 2020 17:41:57 +0900 Subject: [PATCH] Fix an issue the Adaptor is not resumed 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dali/internal/adaptor/common/adaptor-impl.cpp b/dali/internal/adaptor/common/adaptor-impl.cpp index b94f90d..b598079 100644 --- a/dali/internal/adaptor/common/adaptor-impl.cpp +++ b/dali/internal/adaptor/common/adaptor-impl.cpp @@ -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 ); -- 2.7.4