update the video seekbar color depending on the primary color

This commit is contained in:
tibbi 2017-04-14 14:10:41 +02:00
parent 05fc11dc33
commit 9a7f8ed228
2 changed files with 7 additions and 1 deletions

View file

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

View file

@ -42,7 +42,7 @@
android:text="00:00"
android:textColor="@android:color/white"/>
<SeekBar
<com.simplemobiletools.commons.views.MySeekBar
android:id="@+id/video_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"