Homework d954mas Dima Popov#6
Open
d954mas wants to merge 16 commits intoyamblz-native:masterfrom
d954mas:master
Open
Homework d954mas Dima Popov#6d954mas wants to merge 16 commits intoyamblz-native:masterfrom d954mas:master
d954mas wants to merge 16 commits intoyamblz-native:masterfrom
d954mas:master
Conversation
| @Override | ||
| public void loadCollage(List<String> urls, ImageView imageView) { | ||
|
|
||
| public void loadCollage(List<String> urls, ImageView imageView, String key) { |
Collaborator
There was a problem hiding this comment.
Надо убрать key из интерфейса
Можно класть в view.setTag
к тому же ты отменяешь операцию еще и в адаптере, тоже надо убрать
Author
There was a problem hiding this comment.
key убрал. Проблема в том что ImageTarget ничего не знает о View и я немогу вытащить tag, чтобы отменить загрузку битмапов. Я сделал мапу <ImageTarget,LoadBitmapsCallback>, чтобы отменять загрузку если она уже есть для ImageTarget, но по моему так все равно плохо.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1)Collage
-изображения грузятся в разных поток
-изображения склеиваются в разных потоках
-коллаж формируется если изображение больше 4.
2)CriticalSections
1)Используются 2 хендлера(main и delayed. delayed для отложенных задач он постит в main)
2)Хендлеры хранят список TaskRunnble, чтобы было возможно удалить таску
3)При скроле ресайклера с жанрами, imageView не сетит битмап