aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-03 14:19:23 -0700
committerAllan Wang <me@allanwang.ca>2019-07-03 14:19:23 -0700
commit1b2c5c38533a01e72bdb2828922fea62e42e8187 (patch)
treec20819fdb8cd678e20f97d8b9067719e4fe81519 /app/src/main
parentb3d4a07129b8ef6f558c09814737019107a6d67e (diff)
downloadfrost-1b2c5c38533a01e72bdb2828922fea62e42e8187.tar.gz
frost-1b2c5c38533a01e72bdb2828922fea62e42e8187.tar.bz2
frost-1b2c5c38533a01e72bdb2828922fea62e42e8187.zip
Do not show text panel if blank
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/activities/ImageActivity.kt2
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)