From 4fe2d906ec35f0e65f8c4cfe8633d8f3e23582c4 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Thu, 16 Nov 2017 16:46:46 +0900 Subject: [PATCH] Fix event processing bug Event processing request was ignored before the scene is created. Change-Id: I25edef6989fb265a703fa8756ed9798e150ee050 --- adaptors/common/adaptor-impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adaptors/common/adaptor-impl.cpp b/adaptors/common/adaptor-impl.cpp index b5e1044..1a77222 100644 --- a/adaptors/common/adaptor-impl.cpp +++ b/adaptors/common/adaptor-impl.cpp @@ -449,7 +449,7 @@ bool Adaptor::AddIdle( CallbackBase* callback, bool forceAdd ) bool idleAdded(false); // Only add an idle if the Adaptor is actually running - if( RUNNING == mState || forceAdd ) + if( RUNNING == mState || READY == mState || forceAdd ) { idleAdded = mCallbackManager->AddIdleCallback( callback ); } @@ -693,7 +693,7 @@ void Adaptor::RequestProcessEventsOnIdle( bool forceProcess ) { // Only request a notification if the Adaptor is actually running // and we haven't installed the idle notification - if( ( ! mNotificationOnIdleInstalled ) && ( RUNNING == mState || forceProcess ) ) + if( ( ! mNotificationOnIdleInstalled ) && ( RUNNING == mState || READY == mState || forceProcess ) ) { mNotificationOnIdleInstalled = AddIdle( MakeCallback( this, &Adaptor::ProcessCoreEventsFromIdle ), forceProcess ); } -- 2.7.4