mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +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,15 +106,14 @@ 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 });
|
||||
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 });
|
||||
|
||||
if (androidApp.onActivityResumed) {
|
||||
|
Reference in New Issue
Block a user