mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Merge pull request #1839 from NativeScript/cankov/navigation-fail-after-resume
Resumed activities should be marked as foreground
This commit is contained in:
@ -106,14 +106,13 @@ function initEvents() {
|
||||
|
||||
onActivityResumed: function (activity: any) {
|
||||
androidApp.paused = false;
|
||||
androidApp.foregroundActivity = activity;
|
||||
|
||||
if (activity === androidApp.foregroundActivity) {
|
||||
if (typedExports.onResume) {
|
||||
typedExports.onResume();
|
||||
}
|
||||
|
||||
typedExports.notify(<definition.ApplicationEventData>{ eventName: typedExports.resumeEvent, object: androidApp, android: activity });
|
||||
}
|
||||
|
||||
androidApp.notify(<definition.AndroidActivityEventData>{ eventName: "activityResumed", object: androidApp, activity: activity });
|
||||
|
||||
|
Reference in New Issue
Block a user