From 273a28a0d778e8f83344912191f54634a5647b4e Mon Sep 17 00:00:00 2001 From: liwei90727 Date: Wed, 30 Apr 2025 19:01:38 +0800 Subject: [PATCH] Skip preload if app has been launched before 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 --- wrt_app/src/tv/web_application_tv.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wrt_app/src/tv/web_application_tv.ts b/wrt_app/src/tv/web_application_tv.ts index 52f80a61..d53a4d39 100644 --- a/wrt_app/src/tv/web_application_tv.ts +++ b/wrt_app/src/tv/web_application_tv.ts @@ -274,6 +274,11 @@ Then you can get profile log from the initial loading.`; } 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'); -- 2.34.1