i have no idea how but this actually fixes it

This commit is contained in:
Exverge 2024-03-26 21:06:14 -04:00
parent c66de56cce
commit 75ea409dbd
No known key found for this signature in database
GPG key ID: 19AAFC0AC6A9B35A

View file

@ -109,11 +109,15 @@ Result ILibraryAppletAccessor::PopOutData(Out<SharedPointer<IStorage>> out_stora
system.GetAppletManager().RequestApplicationToForeground(); system.GetAppletManager().RequestApplicationToForeground();
// todo: is_appliaction is false because TrackApplet will not accept replacing the currently tracked applet // todo: is_appliaction is false because TrackApplet will not accept replacing the currently tracked applet
system.GetAppletManager().TrackApplet(caller, false); system.GetAppletManager().TrackApplet(caller, false);
caller->SetInteractibleLocked(false);
caller->SetInteractibleLocked(true);
caller->lifecycle_manager.SetResumeNotificationEnabled(true); caller->lifecycle_manager.SetResumeNotificationEnabled(true);
caller->lifecycle_manager.SetFocusState(FocusState::InFocus); caller->lifecycle_manager.SetFocusState(FocusState::InFocus);
caller->lifecycle_manager.RequestResumeNotification(); caller->lifecycle_manager.RequestResumeNotification();
caller->lifecycle_manager.RequestResumeNotification(); caller->lifecycle_manager.RequestResumeNotification();
caller->UpdateSuspensionStateLocked(true);
bool result = caller->lifecycle_manager.UpdateRequestedFocusState(); bool result = caller->lifecycle_manager.UpdateRequestedFocusState();
caller->lifecycle_manager.SignalSystemEventIfNeeded();
LOG_DEBUG(Service_AM, "result: {}, exit: {}", result, caller->lifecycle_manager.GetExitRequested()); LOG_DEBUG(Service_AM, "result: {}, exit: {}", result, caller->lifecycle_manager.GetExitRequested());
} else { } else {
LOG_CRITICAL(Service_AM, "Caller applet pointer is invalid."); LOG_CRITICAL(Service_AM, "Caller applet pointer is invalid.");