crueter
1 month ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
2 additions and
3 deletions
-
src/core/hle/service/am/applet.cpp
|
|
|
@ -29,7 +29,6 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) { |
|
|
|
// Remove any forced resumption.
|
|
|
|
lifecycle_manager.RemoveForceResumeIfPossible(); |
|
|
|
|
|
|
|
const bool update_requested_focus_state = lifecycle_manager.UpdateRequestedFocusState(); |
|
|
|
const bool curr_activity_runnable = lifecycle_manager.IsRunnable(); |
|
|
|
const bool prev_activity_runnable = is_activity_runnable; |
|
|
|
const bool was_changed = curr_activity_runnable != prev_activity_runnable; |
|
|
|
@ -39,7 +38,7 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) { |
|
|
|
process->Suspend(false); |
|
|
|
} else { |
|
|
|
process->Suspend(true); |
|
|
|
lifecycle_manager.RequestResumeNotification(); |
|
|
|
lifecycle_manager.RequestResumeNotification(); |
|
|
|
} |
|
|
|
|
|
|
|
is_activity_runnable = curr_activity_runnable; |
|
|
|
@ -51,7 +50,7 @@ void Applet::UpdateSuspensionStateLocked(bool force_message) { |
|
|
|
} |
|
|
|
|
|
|
|
// Signal if the focus state was changed or the process state was changed.
|
|
|
|
if (update_requested_focus_state || was_changed || force_message) { |
|
|
|
if (lifecycle_manager.UpdateRequestedFocusState() || was_changed || force_message) { |
|
|
|
lifecycle_manager.SignalSystemEventIfNeeded(); |
|
|
|
} |
|
|
|
} |
|
|
|
|