|
@@ -252,28 +252,28 @@ public abstract class Screen extends RelativeLayout implements Subscriber {
|
252
|
252
|
public abstract void setOnDisplayListener(OnDisplayListener onContentViewDisplayedListener);
|
253
|
253
|
|
254
|
254
|
public void show(NavigationType type) {
|
255
|
|
- NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(screenParams, type);
|
256
|
|
- NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(screenParams, type);
|
|
255
|
+ NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getScreenParams(), type);
|
|
256
|
+ NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(getScreenParams(), type);
|
257
|
257
|
screenAnimator.show(screenParams.animateScreenTransitions);
|
258
|
258
|
}
|
259
|
259
|
|
260
|
260
|
public void show(boolean animated, final NavigationType type) {
|
261
|
|
- NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(screenParams, type);
|
|
261
|
+ NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getScreenParams(), type);
|
262
|
262
|
screenAnimator.show(animated, new Runnable() {
|
263
|
263
|
@Override
|
264
|
264
|
public void run() {
|
265
|
|
- NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(screenParams, type);
|
|
265
|
+ NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(getScreenParams(), type);
|
266
|
266
|
}
|
267
|
267
|
});
|
268
|
268
|
}
|
269
|
269
|
|
270
|
270
|
public void show(boolean animated, final Runnable onAnimationEnd, final NavigationType type) {
|
271
|
|
- NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(screenParams, type);
|
|
271
|
+ NavigationApplication.instance.getEventEmitter().sendWillAppearEvent(getScreenParams(), type);
|
272
|
272
|
setStyle();
|
273
|
273
|
screenAnimator.show(animated, new Runnable() {
|
274
|
274
|
@Override
|
275
|
275
|
public void run() {
|
276
|
|
- NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(screenParams, type);
|
|
276
|
+ NavigationApplication.instance.getEventEmitter().sendDidAppearEvent(getScreenParams(), type);
|
277
|
277
|
if (onAnimationEnd != null) onAnimationEnd.run();
|
278
|
278
|
}
|
279
|
279
|
});
|
|
@@ -322,11 +322,11 @@ public abstract class Screen extends RelativeLayout implements Subscriber {
|
322
|
322
|
}
|
323
|
323
|
|
324
|
324
|
private void hide(boolean animated, final Runnable onAnimatedEnd, final NavigationType type) {
|
325
|
|
- NavigationApplication.instance.getEventEmitter().sendWillDisappearEvent(screenParams, type);
|
|
325
|
+ NavigationApplication.instance.getEventEmitter().sendWillDisappearEvent(getScreenParams(), type);
|
326
|
326
|
screenAnimator.hide(animated, new Runnable() {
|
327
|
327
|
@Override
|
328
|
328
|
public void run() {
|
329
|
|
- NavigationApplication.instance.getEventEmitter().sendDidDisappearEvent(screenParams, type);
|
|
329
|
+ NavigationApplication.instance.getEventEmitter().sendDidDisappearEvent(getScreenParams(), type);
|
330
|
330
|
if (onAnimatedEnd != null) onAnimatedEnd.run();
|
331
|
331
|
}
|
332
|
332
|
});
|