|
@@ -97,8 +97,8 @@ public class ScreenStack {
|
97
|
97
|
@Override
|
98
|
98
|
public void onDisplay() {
|
99
|
99
|
if (isStackVisible) {
|
100
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("willAppear", stack.peek().getNavigatorEventId());
|
101
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("didAppear", stack.peek().getNavigatorEventId());
|
|
100
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("willAppear", stack.peek().getNavigatorEventId());
|
|
101
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didAppear", stack.peek().getNavigatorEventId());
|
102
|
102
|
}
|
103
|
103
|
}
|
104
|
104
|
});
|
|
@@ -130,7 +130,7 @@ public class ScreenStack {
|
130
|
130
|
@Nullable final Screen.OnDisplayListener onDisplay) {
|
131
|
131
|
nextScreen.setVisibility(View.INVISIBLE);
|
132
|
132
|
addScreen(nextScreen, layoutParams);
|
133
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("willDisappear", previousScreen.getNavigatorEventId());
|
|
133
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("willDisappear", previousScreen.getNavigatorEventId());
|
134
|
134
|
nextScreen.setOnDisplayListener(new Screen.OnDisplayListener() {
|
135
|
135
|
@Override
|
136
|
136
|
public void onDisplay() {
|
|
@@ -138,7 +138,7 @@ public class ScreenStack {
|
138
|
138
|
@Override
|
139
|
139
|
public void run() {
|
140
|
140
|
if (onDisplay != null) onDisplay.onDisplay();
|
141
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("didDisappear", previousScreen.getNavigatorEventId());
|
|
141
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didDisappear", previousScreen.getNavigatorEventId());
|
142
|
142
|
parent.removeView(previousScreen);
|
143
|
143
|
}
|
144
|
144
|
});
|
|
@@ -235,8 +235,8 @@ public class ScreenStack {
|
235
|
235
|
|
236
|
236
|
private void readdPrevious(Screen previous) {
|
237
|
237
|
previous.setVisibility(View.VISIBLE);
|
238
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("willAppear", previous.getNavigatorEventId());
|
239
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("didAppear", previous.getNavigatorEventId());
|
|
238
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("willAppear", previous.getNavigatorEventId());
|
|
239
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didAppear", previous.getNavigatorEventId());
|
240
|
240
|
parent.addView(previous, 0);
|
241
|
241
|
}
|
242
|
242
|
|
|
@@ -407,13 +407,13 @@ public class ScreenStack {
|
407
|
407
|
isStackVisible = true;
|
408
|
408
|
stack.peek().setStyle();
|
409
|
409
|
stack.peek().setVisibility(View.VISIBLE);
|
410
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("willAppear", stack.peek().getNavigatorEventId());
|
411
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("didAppear", stack.peek().getNavigatorEventId());
|
|
410
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("willAppear", stack.peek().getNavigatorEventId());
|
|
411
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didAppear", stack.peek().getNavigatorEventId());
|
412
|
412
|
}
|
413
|
413
|
|
414
|
414
|
public void hide() {
|
415
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("willDisappear", stack.peek().getNavigatorEventId());
|
416
|
|
- NavigationApplication.instance.getEventEmitter().sendNavigatorEvent("didDisappear", stack.peek().getNavigatorEventId());
|
|
415
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("willDisappear", stack.peek().getNavigatorEventId());
|
|
416
|
+ NavigationApplication.instance.getEventEmitter().sendScreenChangedEvent("didDisappear", stack.peek().getNavigatorEventId());
|
417
|
417
|
isStackVisible = false;
|
418
|
418
|
stack.peek().setVisibility(View.INVISIBLE);
|
419
|
419
|
}
|