Calling ProcessCoreEvents synchronously in time tick callback of WatchApplication 78/145478/4
authorSinJae Lee <sinjae4b.lee@samsung.com>
Tue, 22 Aug 2017 08:21:41 +0000 (17:21 +0900)
committerPaul Wisbey <p.wisbey@samsung.com>
Wed, 23 Aug 2017 11:18:15 +0000 (12:18 +0100)
Change-Id: I8cd2ed4612ae0a5ebdc9a778e55837fa9d2bcb04

adaptors/wearable/watch-application-impl.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 2f47a33..7bad7fe
@@ -50,12 +50,22 @@ void WatchApplication::OnTimeTick(WatchTime& time)
 {
   Dali::WatchApplication watch(this);
   mTickSignal.Emit( watch, time );
+
+  // A watch application will queue messages to update the UI in the signal emitted above
+  // Process these immediately to avoid a blinking issue where the old time is briefly visible
+  CoreEventInterface& eventInterface = Internal::Adaptor::Adaptor::GetImplementation( GetAdaptor() );
+  eventInterface.ProcessCoreEvents();
 }
 
 void WatchApplication::OnAmbientTick(WatchTime& time)
 {
   Dali::WatchApplication watch(this);
   mAmbientTickSignal.Emit( watch, time );
+
+  // A watch application will queue messages to update the UI in the signal emitted above
+  // Process these immediately to avoid a blinking issue where the old time is briefly visible
+  CoreEventInterface& eventInterface = Internal::Adaptor::Adaptor::GetImplementation( GetAdaptor() );
+  eventInterface.ProcessCoreEvents();
 }
 
 void WatchApplication::OnAmbientChanged(bool ambient)