mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-16 20:10:37 +01:00
handle max brightness at panoramas too
This commit is contained in:
parent
cef127dae4
commit
0e36f653e5
@ -57,6 +57,12 @@ open class PanoramaPhotoActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
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() {
|
||||
|
@ -55,6 +55,12 @@ open class PanoramaVideoActivity : SimpleActivity(), SeekBar.OnSeekBarChangeList
|
||||
}
|
||||
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user