Infinity-For-Lemmy/app
Sergei Kozelko 78496e080f
Display comment avatar only if it is the right user (#1191)
Condition in callback for loading avatar url is almost always true[1]. So it would load avatar even if the viewholder got bound to another comment.

Ideally the solution would be to update the comment just like now, then find current position of the comment and call onItemChanged. However you cannot call onItemChanged from onBindViewHolder and that is a problem because callback can be executed synchronously.

So instead we just check that viewholder is bound to some comment and that bound comment's author matches initially requested author.

[1] The only case I know when it is false is when that comment got deleted and its author got replaced with "[deleted]" before the callback got executed
2022-11-03 09:47:10 +08:00
..
src Display comment avatar only if it is the right user (#1191) 2022-11-03 09:47:10 +08:00
build.gradle Minor bugs fixed. 2022-09-21 15:54:58 +10:00
proguard-rules.pro keep class CrashReportsFragment 2021-11-03 05:45:53 +07:00