|
@@ -2,6 +2,7 @@ package com.reactnativenavigation.controllers;
|
2
|
2
|
|
3
|
3
|
import android.app.Dialog;
|
4
|
4
|
import android.content.DialogInterface;
|
|
5
|
+import android.os.Build;
|
5
|
6
|
import android.support.v7.app.AppCompatActivity;
|
6
|
7
|
import android.view.Window;
|
7
|
8
|
import android.view.WindowManager;
|
|
@@ -102,11 +103,18 @@ public class Modal extends Dialog implements DialogInterface.OnDismissListener,
|
102
|
103
|
setOnDismissListener(this);
|
103
|
104
|
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
104
|
105
|
layout = new ModalScreenLayout(getActivity(), screenParams, this);
|
105
|
|
- getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
|
106
|
+ setWindowFlags();
|
106
|
107
|
setOrientation(screenParams.styleParams.orientation);
|
107
|
108
|
setContentView(layout.asView());
|
108
|
109
|
}
|
109
|
110
|
|
|
111
|
+ private void setWindowFlags() {
|
|
112
|
+ getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
|
113
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
114
|
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
|
115
|
+ }
|
|
116
|
+ }
|
|
117
|
+
|
110
|
118
|
private void setAnimation() {
|
111
|
119
|
if (!screenParams.animateScreenTransitions) {
|
112
|
120
|
if (getWindow() != null) {
|