mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
handle max brightness at panoramas too
This commit is contained in:
parent
cef127dae4
commit
0e36f653e5
2 changed files with 12 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue