Yuito-app-android/app/src/main/java/com/keylesspalace/tusky/adapter
Nik Clayton 4169dc34c0
Composite semi-transparent avatars over a solid background (#3874)
Avatars that are semi-transparent are a problem when viewing a thread,
as the line that connects different statuses in the same thread is drawn
underneath the avatar and is visible.

Fix this with a CompositeWithOpaqueBackground Glide transformation that:

1. Extracts the alpha channel from the avatar image
2. Converts the alpha to a 1bpp mask
3. Draws that mask on a new bitmap, with the appropriate background
colour
4. Draws the original bitmap on top of that

So any partially transparent areas of the original image are drawn over
a solid background colour, so anything drawn under them will not appear.
2023-08-08 23:09:59 +02:00
..
AccountFieldEditAdapter.kt Fix ArrayIndexOutOfBoundsException (#3808) 2023-07-06 19:57:35 +02:00
AccountSelectionAdapter.kt Don't display bot badge in account selection dialog (#2589) 2022-06-20 16:11:07 +02:00
AccountViewHolder.kt Convert AccountViewHolder from Java to Kotlin (#3044) 2022-12-28 19:07:43 +01:00
EmojiAdapter.kt respect "animate emojis" setting in emoji picker (#2996) 2022-12-05 19:15:28 +01:00
FollowRequestViewHolder.kt Make links in bios of follow request and follow notifications work (#3646) 2023-05-13 15:32:56 +02:00
LocaleAdapter.kt Convert util/{HttpHeaderLink,PairedList,TimestampUtils,ThemeUtils} to Kotlin (#3046) 2022-12-31 13:01:35 +01:00
PlaceholderViewHolder.kt Keep scroll position when loading missing statuses (#3000) 2023-01-13 19:26:24 +01:00
PollAdapter.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
PreviewPollOptionsAdapter.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ReportNotificationViewHolder.kt update ktlint plugin to 11.3.1, format code (#3442) 2023-03-13 13:16:39 +01:00
StatusBaseViewHolder.java Composite semi-transparent avatars over a solid background (#3874) 2023-08-08 23:09:59 +02:00
StatusDetailedViewHolder.java include card and collapsed state in instant expanded change (#3394) 2023-03-01 20:00:56 +01:00
StatusViewHolder.java Replace shortNumber() with formatNumber() (#3519) 2023-06-10 16:29:26 +02:00
TabAdapter.kt Show a close button for hashtag tab chips (#3140) 2023-01-09 21:24:37 +01:00