|
@@ -90,6 +90,7 @@ public class Modal extends Dialog implements DialogInterface.OnDismissListener,
|
90
|
90
|
this.onModalDismissedListener = onModalDismissedListener;
|
91
|
91
|
this.screenParams = screenParams;
|
92
|
92
|
createContent();
|
|
93
|
+ setAnimation();
|
93
|
94
|
}
|
94
|
95
|
|
95
|
96
|
public AppCompatActivity getActivity() {
|
|
@@ -106,6 +107,14 @@ public class Modal extends Dialog implements DialogInterface.OnDismissListener,
|
106
|
107
|
setContentView(layout.asView());
|
107
|
108
|
}
|
108
|
109
|
|
|
110
|
+ private void setAnimation() {
|
|
111
|
+ if (!screenParams.animateScreenTransitions) {
|
|
112
|
+ if (getWindow() != null) {
|
|
113
|
+ getWindow().setWindowAnimations(android.R.style.Animation);
|
|
114
|
+ }
|
|
115
|
+ }
|
|
116
|
+ }
|
|
117
|
+
|
109
|
118
|
@Override
|
110
|
119
|
public void push(ScreenParams params) {
|
111
|
120
|
layout.push(params);
|