mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-24 07:07:22 +02:00
hide the Extended details if text is empty
This commit is contained in:
parent
06b3c728ce
commit
aca83d7fad
@ -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…
x
Reference in New Issue
Block a user