From 9436a731487839e2bc87e3a42c032a74eb40b508 Mon Sep 17 00:00:00 2001 From: SinJae Lee Date: Tue, 22 Aug 2017 17:21:41 +0900 Subject: [PATCH] Calling ProcessCoreEvents synchronously in time tick callback of WatchApplication Change-Id: I8cd2ed4612ae0a5ebdc9a778e55837fa9d2bcb04 --- adaptors/wearable/watch-application-impl.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 adaptors/wearable/watch-application-impl.cpp diff --git a/adaptors/wearable/watch-application-impl.cpp b/adaptors/wearable/watch-application-impl.cpp old mode 100644 new mode 100755 index 2f47a33..7bad7fe --- a/adaptors/wearable/watch-application-impl.cpp +++ b/adaptors/wearable/watch-application-impl.cpp @@ -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) -- 2.7.4