From 039d6fdfd5c9234033801921fc2997a25ef77545 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Jun 2018 10:41:38 +0200 Subject: [PATCH] fix #802, always use white text color at fullscreen extended details --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 1 - .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 1 - app/src/main/res/layout/pager_photo_item.xml | 3 ++- app/src/main/res/layout/pager_video_item.xml | 3 ++- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 09a0a976c..1c2a1e314 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -380,7 +380,6 @@ class PhotoFragment : ViewPagerFragment() { if (context!!.config.showExtendedDetails) { view.photo_details.apply { text = getMediumExtendedDetails(medium) - setTextColor(context.config.textColor) beVisibleIf(text.isNotEmpty()) alpha = if (!context!!.config.hideExtendedDetails || !isFullscreen) 1f else 0f onGlobalLayout { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index 4349441ec..19a9a8c4f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -463,7 +463,6 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee if (context!!.config.showExtendedDetails) { mView!!.video_details.apply { text = getMediumExtendedDetails(medium) - setTextColor(context.config.textColor) beVisibleIf(text.isNotEmpty()) alpha = if (!context!!.config.hideExtendedDetails || !mIsFullscreen) 1f else 0f onGlobalLayout { diff --git a/app/src/main/res/layout/pager_photo_item.xml b/app/src/main/res/layout/pager_photo_item.xml index b8bff9183..deb877e71 100644 --- a/app/src/main/res/layout/pager_photo_item.xml +++ b/app/src/main/res/layout/pager_photo_item.xml @@ -18,7 +18,7 @@ android:layout_height="match_parent" android:visibility="gone"/> - diff --git a/app/src/main/res/layout/pager_video_item.xml b/app/src/main/res/layout/pager_video_item.xml index 1c19114cb..719a49096 100644 --- a/app/src/main/res/layout/pager_video_item.xml +++ b/app/src/main/res/layout/pager_video_item.xml @@ -63,7 +63,7 @@ android:textColor="@android:color/white" android:textSize="@dimen/extra_big_text_size"/> -