From 1b2c5c38533a01e72bdb2828922fea62e42e8187 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 3 Jul 2019 14:19:23 -0700 Subject: Do not show text panel if blank --- app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/kotlin') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt index 8cf9dfbf..5cab957a 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt @@ -188,7 +188,7 @@ class ImageActivity : KauBaseActivity() { private fun ActivityImageBinding.onCreate() { imageContainer.setBackgroundColor(baseBackgroundColor) this@ImageActivity.imageText.also { text -> - if (text == null) { + if (text.isNullOrBlank()) { imageText.gone() } else { imageText.setTextColor(if (Prefs.blackMediaBg) Color.WHITE else Prefs.textColor) -- cgit v1.2.3