Skip to content
Snippets Groups Projects
Verified Commit 22e586ae authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed NickCountDrawable being broken on older devices

parent 0fe65a08
No related branches found
No related tags found
No related merge requests found
......@@ -88,12 +88,14 @@ class NickCountDrawable(
}
val smallestDimension = Math.min(bounds.width(), bounds.height())
icon.transform(Matrix().apply {
tmpPath.set(icon)
tmpPath.transform(Matrix().apply {
preScale(smallestDimension / 24f, smallestDimension / 24f, 0f, 0f)
if (showText) {
preTranslate(0f, -8f)
}
}, tmpPath)
})
paint.textSize = smallestDimension * 0.6f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment