diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeFragment.kt b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeFragment.kt index f4bacb1f2..d542a931e 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeFragment.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/home/HomeFragment.kt @@ -26,7 +26,7 @@ class HomeFragment : BaseUIFragment() { private fun checkTitle(text: TextView, icon: ImageView) { text.post { - if (text.layout.getEllipsisCount(0) != 0) { + if (text.layout?.getEllipsisCount(0) != 0) { with (icon) { layoutParams.width = 0 layoutParams.height = 0