WatchApplication::WatchApplication( int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode )
: Application(argc, argv, stylesheet, windowMode, PositionSize(), Framework::WATCH),
- mState( UNINITIALIZED )
+ mState( UNINITIALIZED ),
+ mNeedForceRender( false )
{
Dali::StyleMonitor::Get().SetIgnoreGlobalFontSizeChange(1);
}
Application::OnResume();
mState = RESUMED;
+ mNeedForceRender = true;
}
void WatchApplication::OnPause()
Application::OnPause();
mState = PAUSED;
+ mNeedForceRender = true;
}
void WatchApplication::OnTimeTick(WatchTime& time)
Dali::WatchApplication watch(this);
mTickSignal.Emit( watch, time );
- if(mState == PAUSED)
+ if( mNeedForceRender )
{
// This is a pre-resume scenario. All rendering engine of tizen SHOULD forcely update once at this time.
Internal::Adaptor::Adaptor::GetImplementation( GetAdaptor() ).RequestUpdateOnce();
+ mNeedForceRender = false;
}
// A watch application will queue messages to update the UI in the signal emitted above