In normal case, LWAS and LWAS will skip to request preload app if
app is running, but in a rare case(
DF250422-00746), A module launch
app, B preload this app, at that time, app is not running in first
launch, then when WRT get request from B, just launch app directly.
In WRT, we just get preload status in app first launch, so need change
to meet the scenario that app has been launched, but other module request
preload, WRT need skip it.
Change-Id: I449dcb7847d8aee01673f2a1321397669472931a
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
}
handleAppControlEvent(appControl: any) {
+ if (appControl.getData('http://samsung.com/appcontrol/data/launch_mode') === 'backgroundAtStartup') {
+ console.log('app is running, so skip preload request');
+ return false;
+ }
+
this.launchMode = appControl.getData('http://samsung.com/appcontrol/data/launch_mode');
this.preloadStatus = 'none';
let resumeWithAppControl = appControl.getData('ResumeWithAppControl');