Commit 3ca866d2 authored by ColdPaleLight's avatar ColdPaleLight

修复imagepick回调拦截问题

parent b0ebe6e7
......@@ -158,10 +158,9 @@ abstract public class BoostFlutterActivity extends FlutterActivity implements IF
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//防止imagepick等回调数据被拦截
if(data.hasExtra(IFlutterViewContainer.RESULT_KEY)){
if(data != null && data.hasExtra(IFlutterViewContainer.RESULT_KEY)){
FlutterBoostPlugin.onBoostResult(this,requestCode,resultCode,data);
}
else {
} else {
super.onActivityResult(requestCode, resultCode, data);
}
}
......
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