ioneday / ImageSelector

Photo picker library for Android. Support single choice、multi-choice、cropping image and preview image.
408 stars 126 forks source link

Optimized the LocalMediaLoader(优化了图片加载机制) #5

Closed JoeSteven closed 8 years ago

JoeSteven commented 8 years ago

1.optimized the localMediaLoader 2.fix a crash case in ImageCropActivity--null pointer please know that:I just optimized the image load mechanism to offer you a train of thought,get a image folder by one file in it is faster than query the SQLite,you also forgot to close the cursor after query,I added it for you. 1.优化了图片加载机制 2.修复了一个图片剪裁中的空指针异常 须知:我只优化了图片加载的部分,只是为了提供一种思路,通过查询到的一个文件去获取他的目录,然后通过file的api去获取该目录下的所有文件,这样可以减少数据库的操作,提升速度。 finally ,thank you for open source this project 最后感谢你开源了这个项目