set the video player background drawable in code

This commit is contained in:
tibbi
2019-01-02 20:15:14 +01:00
parent dad6fb6689
commit 1d1254b6e9
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,7 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
supportActionBar?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
window.statusBarColor = Color.TRANSPARENT
window.navigationBarColor = Color.TRANSPARENT
video_time_holder.background = resources.getDrawable(R.drawable.gradient_background)
if (config.blackBackground) {
video_player_holder.background = ColorDrawable(Color.BLACK)
}