瀏覽代碼

Fix round text icons (closes #2934)

arkon 5 年之前
父節點
當前提交
2b27b40142
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/util/view/ViewExtensions.kt

+ 2 - 2
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)
-    )
+    ))
 }
 
 /**