Fix event processing bug 62/160562/2
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 16 Nov 2017 07:46:46 +0000 (16:46 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Fri, 17 Nov 2017 01:51:55 +0000 (01:51 +0000)
Event processing request was ignored before the scene is created.

Change-Id: I25edef6989fb265a703fa8756ed9798e150ee050

adaptors/common/adaptor-impl.cpp

index b5e1044..1a77222 100644 (file)
@@ -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 );
   }