From 0526f2650ec74174c25c16944c336a9bfd189acb Mon Sep 17 00:00:00 2001 From: xbdtb Date: Fri, 15 Sep 2017 14:47:46 +0800 Subject: [PATCH] Update PickerViewModule.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除Dialog的TYPE_TOAST样式,去除对悬浮窗口权限的依赖 --- android/src/main/java/com/beefe/picker/PickerViewModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/beefe/picker/PickerViewModule.java b/android/src/main/java/com/beefe/picker/PickerViewModule.java index ed90d2438..c10059d87 100644 --- a/android/src/main/java/com/beefe/picker/PickerViewModule.java +++ b/android/src/main/java/com/beefe/picker/PickerViewModule.java @@ -350,7 +350,7 @@ public void onSelected(ArrayList selectedList) { 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;