hide the Extended details if text is empty
This commit is contained in:
parent
06b3c728ce
commit
aca83d7fad
2 changed files with 2 additions and 2 deletions
|
@ -275,7 +275,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
view.photo_details.apply {
|
view.photo_details.apply {
|
||||||
text = getMediumExtendedDetails(medium)
|
text = getMediumExtendedDetails(medium)
|
||||||
setTextColor(context.config.textColor)
|
setTextColor(context.config.textColor)
|
||||||
beVisible()
|
beVisibleIf(text.isNotEmpty())
|
||||||
onGlobalLayout {
|
onGlobalLayout {
|
||||||
if (height != 0) {
|
if (height != 0) {
|
||||||
val smallMargin = resources.getDimension(R.dimen.small_margin)
|
val smallMargin = resources.getDimension(R.dimen.small_margin)
|
||||||
|
|
|
@ -505,7 +505,7 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
|
||||||
mView.video_details.apply {
|
mView.video_details.apply {
|
||||||
text = getMediumExtendedDetails(medium)
|
text = getMediumExtendedDetails(medium)
|
||||||
setTextColor(context.config.textColor)
|
setTextColor(context.config.textColor)
|
||||||
beVisible()
|
beVisibleIf(text.isNotEmpty())
|
||||||
onGlobalLayout {
|
onGlobalLayout {
|
||||||
if (height != 0) {
|
if (height != 0) {
|
||||||
val smallMargin = resources.getDimension(R.dimen.small_margin)
|
val smallMargin = resources.getDimension(R.dimen.small_margin)
|
||||||
|
|
Loading…
Reference in a new issue