Repository navigation
Conversation
|
When I open folder where are pics every time it load me first 2 thumbnails and for other 5-6 need about 30 sec to wait until they are loaded, but when I "pull to refresh" every 1-2 sec thumbnails are loading faster. Is it possible to compres thumbnails to reduce quality which would speed up thumbnails previews ? |
|
@nedimhx This has absolutely nothing to do with this pull request. Regarding your first problem: please open a new issue and describe your problem with the template. |
|
I have seen this problem as well. The picture box is not repainted after the image is set. But this has really nothing to do with my pull request. The problem already existed before. |
|
Any updates on this? Will this be merged? |
|
Hi @Spacefish, Thanks for your contribution. We are fighting with the thumbnails problem. Also we need to validate this PR before merging it. Thanks in advance |
|
@masensio thanks for your answer, i have already signed the contributor agreement, i have commit rights for most of the repositories here, but android is not one of them. |
|
@Spacefish, thanks for your answer. Sorry I've looked for your name in Android-devs team and I haven't found it. |
|
Any updates on this? The commit is still compatible with the latest source in develop.. Can we merge it? I have signed the developers agreement, but i have no rights in the android repository here :( |
|
There is a small typo in the task: thumbnail is missing a n ;) |
There was a problem hiding this comment.
ThumbnailLoaderTask instead of ThumbailLoaderTask ;)
There was a problem hiding this comment.
Refactoring the original block in a reusable item is really needed, great point.
At first I didn't understand the new flow, but in a second thought, seems that makes sense.
Anyway, is not there an easier way to write it? Maybe merging both ThumbnailLoaderTask and ThumbnailGenerationTask in a single AsyncTask? Just wondering, didn't think it in depth.
|
@Spacefish could you update this PR with the last version of develop? As soon as this branch is updated, this PR will be ready to be tested. |
|
Sorry, I need more info. What's the advantage of using Thanks in advance. |
|
Reviewing better this time. So, the point is not the I'll add a couple of comments. |
|
|
||
| private static final String TAG = DiskLruImageCache.class.getSimpleName(); | ||
|
|
||
| private Map<String, SoftReference<Bitmap>> mBitmapCache = Collections.synchronizedMap(new HashMap<String, SoftReference<Bitmap>>()); |
There was a problem hiding this comment.
Please, wrap lines at 120 characters for better readability in Github
|
@Spacefish , I made some comments. Could you also rebase your branch on |
this is pr #943 but against develop instead of master. I also some functionality to make sure that the cache is consistent, when using put, remove, clear on the class.