Skip to content

Commit

Permalink
更新裁剪库-修正返回的图片
Browse files Browse the repository at this point in the history
  • Loading branch information
Qixingchen committed Mar 21, 2023
1 parent 8fa340e commit 840be84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/moe/xing/getimage_app/ImageAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
Glide.with(holder.itemView.getContext()).load(datas.get(position))
.apply(new RequestOptions().centerCrop())
.apply(new RequestOptions().centerInside())
.into(holder.mBinding.image);
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/java/moe/xing/getimage/GetImageActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
break;
case CORP_PHOTO:
if (corpedImage != null) {
File corped = new File(URI.create(corpedImage.toString()));
File corped = new File(URI.create(UCrop.getOutput(data).toString()));
sendSingleAnsAndFinish(corped);
} else {
RxGetImage.getInstance().onError(new Throwable("空文件"), getSubscriberID());
Expand Down

0 comments on commit 840be84

Please sign in to comment.