NewPipe/app/src/main/java/org/schabi/newpipe/fragments/detail
Stypox 8d59812827
Fix channel avatar not loading correctly sometimes
The fix just involves removing some really outdated code (6 years ago) added in 33e29be7db (diff-38bd2cf1b92659b499c08e1cf6ac9ef384c7e13381b906f2f98c57cbb758756dR778) (blame: 9318bb5306/app/src/main/java/org/schabi/newpipe/detail/VideoItemDetailActivity.java (L778)).
What that code did was setting the 'buddy' image to the uploader avatar as a placeholder, and then setting the actual image if it existed and after it had loaded.
That code remained there up until now, but now it doesn't make sense anymore, since Picasso already takes care of setting placeholders.
The problem is, starting from #10066 the actual uploader image is set before (not after) those lines of code, making them do the wrong thing, i.e. always overwrite the currently set image.
But then why did the channel avatar image work normally sometimes?
My guess is that since Picasso loads images in the background, when opening a video from scratch setting the placeholder still happened before Picasso finished loading the image.
However when the image is already cached it's loaded much faster and therefore setting the placeholder happens after, effectively hiding the loaded image.
2023-12-10 15:12:38 +01:00
..
BaseDescriptionFragment.java Make question mark localizable 2023-09-22 10:14:45 +02:00
DescriptionFragment.java Display all thumbnails in description tab 2023-09-22 10:14:44 +02:00
StackItem.java Annotate some NonNulls, some lint cleaning 2022-03-18 13:15:44 -04:00
TabAdapter.java Revert to deprecated BEHAVIOR_SET_USER_VISIBLE_HINT in TabAdapter 2020-09-06 14:02:25 +02:00
VideoDetailFragment.java Fix channel avatar not loading correctly sometimes 2023-12-10 15:12:38 +01:00
VideoDetailPlayerCrasher.java Replace LinkedHashMap with List.of(). 2022-07-20 04:39:11 +05:30