Skip to content

Commit

Permalink
1.优化图片加载处理。
Browse files Browse the repository at this point in the history
  • Loading branch information
peter committed Mar 16, 2023
1 parent ddbbd46 commit 9e8b878
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion imagepicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.2.7"
versionName "1.2.8"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void onViewRecycled(@NonNull ViewHolder holder) {
super.onViewRecycled(holder);
if(imagePicker.getImageLoader() != null){
if (holder instanceof ImageViewHolder){
imagePicker.getImageLoader().onViewRecycled(((ImageViewHolder)holder).ivThumb);
imagePicker.getImageLoader().onViewRecycled(mActivity,((ImageViewHolder)holder).ivThumb);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface ImageLoader extends Serializable {

void displayImage(Activity activity, Uri uri, ImageView imageView, int width, int height);

default void onViewRecycled(ImageView imageView){}
default void onViewRecycled(Activity activity,ImageView imageView){}

void clearMemoryCache();
}

0 comments on commit 9e8b878

Please sign in to comment.