|
@@ -8,13 +8,14 @@ import android.app.Dialog;
|
8
|
8
|
import android.content.Context;
|
9
|
9
|
import android.content.DialogInterface;
|
10
|
10
|
import android.graphics.Color;
|
|
11
|
+import android.os.Build;
|
11
|
12
|
import android.support.v4.view.animation.FastOutSlowInInterpolator;
|
12
|
13
|
import android.support.v7.app.AppCompatActivity;
|
13
|
14
|
import android.view.View;
|
14
|
15
|
import android.view.ViewGroup;
|
15
|
16
|
import android.view.Window;
|
|
17
|
+import android.view.WindowManager;
|
16
|
18
|
import android.widget.RelativeLayout;
|
17
|
|
-
|
18
|
19
|
import com.reactnativenavigation.R;
|
19
|
20
|
import com.reactnativenavigation.params.LightBoxParams;
|
20
|
21
|
import com.reactnativenavigation.screens.Screen;
|
|
@@ -36,6 +37,10 @@ public class LightBox extends Dialog implements DialogInterface.OnDismissListene
|
36
|
37
|
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
37
|
38
|
createContent(activity, params);
|
38
|
39
|
getWindow().setWindowAnimations(android.R.style.Animation);
|
|
40
|
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
|
41
|
+ getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
|
|
42
|
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
|
|
43
|
+ }
|
39
|
44
|
}
|
40
|
45
|
|
41
|
46
|
private void createContent(final Context context, LightBoxParams params) {
|