use max brightness at playing video if desired

This commit is contained in:
tibbi 2019-01-03 19:53:29 +01:00
parent 2dfbf32f1c
commit d0c00d433c

View file

@ -71,6 +71,13 @@ open class VideoPlayerActivity : SimpleActivity(), SeekBar.OnSeekBarChangeListen
if (config.blackBackground) {
video_player_holder.background = ColorDrawable(Color.BLACK)
}
if (config.maxBrightness) {
val attributes = window.attributes
attributes.screenBrightness = 1f
window.attributes = attributes
}
updateTextColors(video_player_holder)
}