|
@@ -48,6 +48,7 @@ public class SingleScreenLayout extends RelativeLayout implements Layout {
|
48
|
48
|
createStack(getScreenStackParent());
|
49
|
49
|
}
|
50
|
50
|
createFabAndSnackbarContainer();
|
|
51
|
+ sendScreenChangedEventAfterInitialPush();
|
51
|
52
|
}
|
52
|
53
|
|
53
|
54
|
private RelativeLayout getScreenStackParent() {
|
|
@@ -75,6 +76,14 @@ public class SingleScreenLayout extends RelativeLayout implements Layout {
|
75
|
76
|
stack.show();
|
76
|
77
|
}
|
77
|
78
|
|
|
79
|
+ private void sendScreenChangedEventAfterInitialPush() {
|
|
80
|
+ if (screenParams.topTabParams != null) {
|
|
81
|
+ EventBus.instance.post(new ScreenChangedEvent(screenParams.topTabParams.get(0)));
|
|
82
|
+ } else {
|
|
83
|
+ EventBus.instance.post(new ScreenChangedEvent(screenParams));
|
|
84
|
+ }
|
|
85
|
+ }
|
|
86
|
+
|
78
|
87
|
private void createFabAndSnackbarContainer() {
|
79
|
88
|
snackbarAndFabContainer = new SnackbarAndFabContainer(getContext());
|
80
|
89
|
RelativeLayout.LayoutParams lp = new LayoutParams(MATCH_PARENT, MATCH_PARENT);
|