inQuit: boolean = false;
profileDelegate: WebApplicationDelegate;
splashShown: boolean = false;
+ reload: boolean = false;
constructor(options: RuntimeOption) {
if (wrt.tv) {
let loadInfo = appControl.getLoadInfo();
let src = loadInfo.getSrc();
- let reload = loadInfo.getReload() || this.profileDelegate.needReload(src);
+ this.reload = loadInfo.getReload() || this.profileDelegate.needReload(src);
// handle http://tizen.org/appcontrol/operation/main operation specially.
// only menu-screen app can send launch request with main operation.
// in this case, web app should have to resume web app not reset.
- if (reload && appControl.getOperation() == 'http://tizen.org/appcontrol/operation/main')
- reload = false;
- if (reload)
+ if (this.reload && appControl.getOperation() == 'http://tizen.org/appcontrol/operation/main')
+ this.reload = false;
+ if (this.reload)
this.handleAppControlReload(src);
else
this.sendAppControlEvent();
resume() {
console.log('WebApplication : resume');
this.suspended = false;
- addonManager.emit('lcResume', this.mainWindow.id);
+ addonManager.emit('lcResume', this.mainWindow.id, this.reload);
+ this.reload = false;
if (!this.backgroundRunnable())
this.windowList.forEach((window) => window.setEnabled(true));