Commit 88a28840 authored by zhangzy's avatar zhangzy

修改android下,添加modal后,在window中modal的层级高于picker的bug

parent c927541b
...@@ -350,6 +350,7 @@ public class PickerViewModule extends ReactContextBaseJavaModule implements Life ...@@ -350,6 +350,7 @@ public class PickerViewModule extends ReactContextBaseJavaModule implements Life
Window window = dialog.getWindow(); Window window = dialog.getWindow();
if (window != null) { if (window != null) {
layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
layoutParams.type = WindowManager.LayoutParams.TYPE_TOAST;
layoutParams.format = PixelFormat.TRANSPARENT; layoutParams.format = PixelFormat.TRANSPARENT;
layoutParams.windowAnimations = R.style.PickerAnim; layoutParams.windowAnimations = R.style.PickerAnim;
layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT; layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment