Commit c5d4b22a authored by zooble's avatar zooble Committed by GitHub

Merge pull request #151 from a289459798/master

修复android与ios使用中遇到的bug
parents 0850b366 74b2bc82
...@@ -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;
......
...@@ -477,6 +477,8 @@ ...@@ -477,6 +477,8 @@
id firstobject=[self.dataDry firstObject]; id firstobject=[self.dataDry firstObject];
_seleNum = 1;
if ([firstobject isKindOfClass:[NSArray class]]) { if ([firstobject isKindOfClass:[NSArray class]]) {
_seleNum=self.dataDry.count; _seleNum=self.dataDry.count;
...@@ -618,7 +620,7 @@ ...@@ -618,7 +620,7 @@
[dic setValue:@"confirm" forKey:@"type"]; [dic setValue:@"confirm" forKey:@"type"];
NSMutableArray *arry=[[NSMutableArray alloc]init]; NSMutableArray *arry=[[NSMutableArray alloc]init];
[dic setValue:[self getselectIndexArry] forKey:@"selectedIndex"]; [dic setValue:[self getselectIndexArry] forKey:@"selectedIndex"];
[dic setValue:arry forKey:@"selectedIndex"]; // [dic setValue:arry forKey:@"selectedIndex"];
self.bolock(dic); self.bolock(dic);
......
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