mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
handle max brightness at panoramas too
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user