From 2b27b40142ef1dc687a58b89e764289d5d30ed6a Mon Sep 17 00:00:00 2001 From: arkon Date: Wed, 22 Apr 2020 22:30:40 -0400 Subject: [PATCH] Fix round text icons (closes #2934) --- .../main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt index 9de5ac717..851d4b657 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt @@ -93,7 +93,7 @@ fun ImageView.roundTextIcon(text: String) { val letter = text.take(1).toUpperCase() val size = min(this.width, this.height) - TextDrawable( + setImageDrawable(TextDrawable( shape = TextDrawable.DRAWABLE_SHAPE_OVAL, desiredWidth = size, desiredHeight = size, @@ -101,7 +101,7 @@ fun ImageView.roundTextIcon(text: String) { textColor = Color.WHITE, text = letter, color = ColorGenerator.MATERIAL.getColor(letter) - ) + )) } /**