From 9a7f8ed2285a191c5898864ac59549f534ce1026 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 14 Apr 2017 14:10:41 +0200 Subject: [PATCH] update the video seekbar color depending on the primary color --- .../simplemobiletools/gallery/fragments/VideoFragment.kt | 6 ++++++ app/src/main/res/layout/pager_video_item.xml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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 b7be4d1b7..32f02967c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -14,6 +14,7 @@ import android.view.animation.AnimationUtils import android.widget.SeekBar import android.widget.TextView import com.simplemobiletools.commons.extensions.getFormattedDuration +import com.simplemobiletools.commons.extensions.updateTextColors import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.extensions.config import com.simplemobiletools.gallery.extensions.getNavBarHeight @@ -69,6 +70,11 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee return mView } + override fun onResume() { + super.onResume() + activity.updateTextColors(mView.video_holder) + } + private fun setupPlayer() { if (activity == null) return diff --git a/app/src/main/res/layout/pager_video_item.xml b/app/src/main/res/layout/pager_video_item.xml index e0a10057b..572e96c33 100644 --- a/app/src/main/res/layout/pager_video_item.xml +++ b/app/src/main/res/layout/pager_video_item.xml @@ -42,7 +42,7 @@ android:text="00:00" android:textColor="@android:color/white"/> -