Due to 2sec delay timer, splash screen runs after 2sec.
Fix it for splash screen to be displayed without delay
if splash screen is active.
Change-Id: I7b86a68563a87bd06f8f97b19a7f286cb247b1af
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
std::shared_ptr<const wgt::parse::LaunchScreenInfo> ss_info,
const std::string& app_path);
void HideSplashScreen(HideReason reason);
+ bool IsActive() const { return is_active_; }
private:
std::pair<int, int> GetDimensions(NativeWindow* window);
void WebApplication::SetTimeoutFirstFrameDelay() {
LOGGER(DEBUG);
- firstframe_delay_timer_ = ecore_timer_add(
- FirstFrameDelayWaitTime,
- FirstFrameDelayTimerCallback, this);
+ if (splash_screen_->IsActive()) {
+ FirstFrameDelayTimerCallback(this);
+ } else {
+ firstframe_delay_timer_ = ecore_timer_add(
+ FirstFrameDelayWaitTime,
+ FirstFrameDelayTimerCallback, this);
+ }
}
Eina_Bool WebApplication::FirstFrameDelayTimerCallback(void* data) {