From 7447c9b60f48b838bff0aa033ab6443c9a15630b Mon Sep 17 00:00:00 2001 From: Adrian Muzyka Date: Tue, 3 Oct 2023 10:52:46 +0200 Subject: [PATCH] RDK-43052: Clear nativeAppWasResumed in handleDeactivated --- RDKShell/RDKShell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RDKShell/RDKShell.cpp b/RDKShell/RDKShell.cpp index 6892cfab7d..e345a007ad 100755 --- a/RDKShell/RDKShell.cpp +++ b/RDKShell/RDKShell.cpp @@ -912,6 +912,11 @@ namespace WPEFramework { { gExitReasonMutex.lock(); gApplicationsExitReason[service->Callsign()] = AppLastExitReason::DEACTIVATED; +#ifdef HIBERNATE_NATIVE_APPS_ON_SUSPENDED + nativeAppWasResumedMutex.lock(); + nativeAppWasResumed[service->Callsign()] = false; + nativeAppWasResumedMutex.unlock(); +#endif if(service->Reason() == PluginHost::IShell::FAILURE) { gApplicationsExitReason[service->Callsign()] = AppLastExitReason::CRASH;