handle max brightness at panoramas too

This commit is contained in:
tibbi 2021-03-31 11:50:48 +02:00
parent cef127dae4
commit 0e36f653e5
2 changed files with 12 additions and 0 deletions

View file

@ -57,6 +57,12 @@ open class PanoramaPhotoActivity : SimpleActivity() {
} }
window.statusBarColor = resources.getColor(R.color.circle_black_background) window.statusBarColor = resources.getColor(R.color.circle_black_background)
if (config.maxBrightness) {
val attributes = window.attributes
attributes.screenBrightness = 1f
window.attributes = attributes
}
} }
override fun onPause() { override fun onPause() {

View file

@ -55,6 +55,12 @@ open class PanoramaVideoActivity : SimpleActivity(), SeekBar.OnSeekBarChangeList
} }
window.statusBarColor = resources.getColor(R.color.circle_black_background) window.statusBarColor = resources.getColor(R.color.circle_black_background)
if (config.maxBrightness) {
val attributes = window.attributes
attributes.screenBrightness = 1f
window.attributes = attributes
}
} }
override fun onPause() { override fun onPause() {