|
@@ -64,18 +64,18 @@ public class NavigationReactGateway implements ReactGateway {
|
64
|
64
|
}
|
65
|
65
|
|
66
|
66
|
public void onDestroyApp(Activity activity) {
|
67
|
|
- if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
|
|
67
|
+ if (NavigationApplication.instance.clearHostOnActivityDestroy(activity)) {
|
68
|
68
|
getReactInstanceManager().onHostDestroy();
|
69
|
69
|
} else if (hasStartedCreatingContext() && isInitialized()) {
|
70
|
70
|
getReactInstanceManager().onHostDestroy(activity);
|
71
|
71
|
}
|
72
|
|
- if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
|
|
72
|
+ if (NavigationApplication.instance.clearHostOnActivityDestroy(activity)) {
|
73
|
73
|
host.clear();
|
74
|
74
|
}
|
75
|
75
|
}
|
76
|
76
|
|
77
|
77
|
public void onPauseActivity(Activity activity) {
|
78
|
|
- if (NavigationApplication.instance.clearHostOnActivityDestroy()) {
|
|
78
|
+ if (NavigationApplication.instance.clearHostOnActivityDestroy(activity)) {
|
79
|
79
|
getReactInstanceManager().onHostPause();
|
80
|
80
|
} else if (hasStartedCreatingContext() && isInitialized()) {
|
81
|
81
|
getReactInstanceManager().onHostPause(activity);
|