Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
OOM when load many images
  • Loading branch information
litao0621 committed Sep 12, 2016
1 parent 77eb642 commit 980ba32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0-beta3'
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return vh;
}

@Override
public void onViewRecycled(ViewHolder holder) {
super.onViewRecycled(holder);
Glide.clear(holder.mImageView);
}

@Override
public void onBindViewHolder(ViewHolder viewHolder, int i) {
Expand Down

0 comments on commit 980ba32

Please sign in to comment.