hide the Extended details if text is empty

This commit is contained in:
tibbi 2017-10-24 21:18:33 +02:00
parent 06b3c728ce
commit aca83d7fad
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ class PhotoFragment : ViewPagerFragment() {
view.photo_details.apply {
text = getMediumExtendedDetails(medium)
setTextColor(context.config.textColor)
beVisible()
beVisibleIf(text.isNotEmpty())
onGlobalLayout {
if (height != 0) {
val smallMargin = resources.getDimension(R.dimen.small_margin)

View file

@ -505,7 +505,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
mView.video_details.apply {
text = getMediumExtendedDetails(medium)
setTextColor(context.config.textColor)
beVisible()
beVisibleIf(text.isNotEmpty())
onGlobalLayout {
if (height != 0) {
val smallMargin = resources.getDimension(R.dimen.small_margin)