Skip to content

Commit

Permalink
优化..
Browse files Browse the repository at this point in the history
  • Loading branch information
donglua committed May 25, 2016
1 parent ea9cc0b commit 3b6219a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PhotoPicker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
buildToolsVersion "23.0.3"
resourcePrefix "__picker_"

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,10 @@ public void setShowCamera(boolean hasCamera) {
public boolean showCamera() {
return (hasCamera && currentDirectoryIndex == MediaStoreHelper.INDEX_ALL_PHOTOS);
}

@Override public void onViewDetachedFromWindow(PhotoViewHolder holder) {
super.onViewDetachedFromWindow(holder);

Glide.clear(holder.ivPhoto);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -301,5 +301,7 @@ public int getCurrentItem() {

paths.clear();
paths = null;

mViewPager.setAdapter(null);
}
}

0 comments on commit 3b6219a

Please sign in to comment.