fix #802, always use white text color at fullscreen extended details

This commit is contained in:
tibbi 2018-06-14 10:41:38 +02:00
parent e88df331d9
commit 039d6fdfd5
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

@ -18,7 +18,7 @@
android:layout_height="match_parent"
android:visibility="gone"/>
<com.simplemobiletools.commons.views.MyTextView
<TextView
android:id="@+id/photo_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -27,6 +27,7 @@
android:layout_marginRight="@dimen/small_margin"
android:background="@color/gradient_grey_start"
android:padding="@dimen/small_margin"
android:textColor="@color/theme_dark_text_color"
android:textSize="@dimen/smaller_text_size"
android:visibility="gone"
tools:text="My image\nAnother line"/>

View file

@ -63,7 +63,7 @@
android:textColor="@android:color/white"
android:textSize="@dimen/extra_big_text_size"/>
<com.simplemobiletools.commons.views.MyTextView
<TextView
android:id="@+id/video_details"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@ -72,6 +72,7 @@
android:layout_marginRight="@dimen/small_margin"
android:background="@color/gradient_grey_start"
android:padding="@dimen/small_margin"
android:textColor="@color/theme_dark_text_color"
android:textSize="@dimen/smaller_text_size"
android:visibility="gone"
tools:text="My video\nAnother line"/>