mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-05 13:57:45 +01:00
update the video seekbar color depending on the primary color
This commit is contained in:
parent
05fc11dc33
commit
9a7f8ed228
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user