Skip to content

Commit

Permalink
1. 修复单个图片设置编辑第二次失效的问题
Browse files Browse the repository at this point in the history
2. 修复单个图片设置铺满屏幕设置
  • Loading branch information
aaatttcccc committed Jul 23, 2021
1 parent a40b683 commit 76f9d8c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ private void initView() {
// 禁用点击功能
mViewHolder.pvLayout.setButtonFeatures(BUTTON_STATE_ONLY_LONG_CLICK);
mViewHolder.pvLayout.setTip(getResources().getString(R.string.z_multi_library_long_press_camera));
} else if (SelectableUtils.getVideoMaxCount() == 0) {
} else if (SelectableUtils.getVideoMaxCount() == 0) {
// 禁用长按功能
mViewHolder.pvLayout.setButtonFeatures(BUTTON_STATE_ONLY_CLICK);
mViewHolder.pvLayout.setTip(getResources().getString(R.string.z_multi_library_light_touch_take));
Expand Down Expand Up @@ -799,8 +799,8 @@ public void refreshEditPhoto() {
BitmapData bitmapData = new BitmapData(mPhotoFile.getPath(), uri);
mCaptureBitmaps.put(0, bitmapData);

mGlobalSpec.imageEngine.loadThumbnail(getContext(), mViewHolder.imgPhoto.getWidth(), mPlaceholder,
mViewHolder.imgPhoto, uri);
mGlobalSpec.imageEngine.loadUriImage(getContext(), mViewHolder.imgPhoto, uri);
mViewHolder.rlEdit.setTag(uri);
}

/**
Expand Down Expand Up @@ -984,7 +984,7 @@ private void showPicture(Bitmap bitmap) {
addMultiplePicture(bitmapData);
} else {
// 如果只有单个图片,就显示相应的提示结果等等
mViewHolder.imgPhoto.setScaleType(ImageView.ScaleType.FIT_CENTER);
mViewHolder.imgPhoto.setScaleType(ImageView.ScaleType.FIT_XY);
mCaptureBitmaps.put(0, bitmapData);
mGlobalSpec.imageEngine.loadUriImage(getContext(), mViewHolder.imgPhoto, bitmapData.getUri());
mViewHolder.imgPhoto.setVisibility(VISIBLE);
Expand Down

0 comments on commit 76f9d8c

Please sign in to comment.