Commit 0526f265 authored by xbdtb's avatar xbdtb Committed by GitHub

Update PickerViewModule.java

去除Dialog的TYPE_TOAST样式,去除对悬浮窗口权限的依赖
parent a4d1ae56
......@@ -350,7 +350,7 @@ public class PickerViewModule extends ReactContextBaseJavaModule implements Life
Window window = dialog.getWindow();
if (window != null) {
layoutParams.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE;
layoutParams.type = WindowManager.LayoutParams.TYPE_TOAST;
// layoutParams.type = WindowManager.LayoutParams.TYPE_TOAST;
layoutParams.format = PixelFormat.TRANSPARENT;
layoutParams.windowAnimations = R.style.PickerAnim;
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