SplashScreen instance is not destroyed in VIDEOFINISHED case,
it caused app can't show to foreground.
Related patch:
https://review.tizen.org/gerrit/297080/
Change-Id: If3c44a252113c4f3900a087cdc49cc7967c50c49
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
}
hideSplashScreen(reason: string) {
+ let hideReason = 0;
switch (reason) {
case 'first-paint': {
- if (wrt.hideSplashScreen(0) !== false)
- this.show();
+ hideReason = 0;
break;
}
case 'complete': {
- if (wrt.hideSplashScreen(1) !== false)
- this.show();
+ hideReason = 1;
break;
}
case 'custom': {
- if (wrt.hideSplashScreen(2) !== false)
- this.show();
+ hideReason = 2;
break;
}
case 'video-finished': {
- this.show();
+ hideReason = 3;
break;
}
default:
- break;
+ console.log('hideReason: ' + hideReason);
+ return;
}
+
+ if (wrt.hideSplashScreen(hideReason) !== false)
+ this.show();
}
private setupMainWindowEventListener() {