diff options
author | Allan Wang <me@allanwang.ca> | 2019-07-03 14:19:23 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-07-03 14:19:23 -0700 |
commit | 1b2c5c38533a01e72bdb2828922fea62e42e8187 (patch) | |
tree | c20819fdb8cd678e20f97d8b9067719e4fe81519 /app/src/main/kotlin/com/pitchedapps | |
parent | b3d4a07129b8ef6f558c09814737019107a6d67e (diff) | |
download | frost-1b2c5c38533a01e72bdb2828922fea62e42e8187.tar.gz frost-1b2c5c38533a01e72bdb2828922fea62e42e8187.tar.bz2 frost-1b2c5c38533a01e72bdb2828922fea62e42e8187.zip |
Do not show text panel if blank
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |