Skip to content

Commit

Permalink
微信demo用法和之前一致
Browse files Browse the repository at this point in the history
  • Loading branch information
nanchen2251 committed Apr 26, 2017
1 parent 6017935 commit a910340
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
ImagePicker.getInstance().setSelectLimit(maxImgCount - selImageList.size());
Intent intent1 = new Intent(WxDemoActivity.this, ImageGridActivity.class);
/* 如果需要进入选择的时候显示已经选中的图片,
* 则注释掉上面的ImagePicker.getInstance().setSelectLimit(maxImgCount - selImageList.size());
* 并打开下面的注释,详情请查看ImagePickerActivity
* 详情请查看ImagePickerActivity
* */
// intent1.putExtra(ImageGridActivity.EXTRAS_IMAGES,images);
startActivityForResult(intent1, REQUEST_CODE_SELECT);
Expand Down Expand Up @@ -157,7 +156,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
} else if (resultCode == ImagePicker.RESULT_CODE_BACK) {
//预览图片返回
if (data != null && requestCode == REQUEST_CODE_PREVIEW) {
ArrayList<ImageItem> images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_IMAGE_ITEMS);
images = (ArrayList<ImageItem>) data.getSerializableExtra(ImagePicker.EXTRA_IMAGE_ITEMS);
if (images != null) {
selImageList.clear();
selImageList.addAll(images);
Expand Down

0 comments on commit a910340

Please sign in to comment.