1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-08 20:12:39 +01:00

Do not show text panel if blank

This commit is contained in:
Allan Wang 2019-07-03 14:19:23 -07:00
parent b3d4a07129
commit 1b2c5c3853
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56

View File

@ -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)