Don't unnecessarily set statusBarColor in native player (#273)

This commit is contained in:
Max Rumpf
2020-12-13 18:17:13 +01:00
committed by GitHub
parent d9bd90cca6
commit eea7ca2291
@@ -104,7 +104,6 @@ class PlayerFragment : Fragment() {
with(requireActivity()) {
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
enableFullscreen()
window.statusBarColor = Color.BLACK
}
// Observe ViewModel
@@ -438,10 +437,6 @@ class PlayerFragment : Fragment() {
// Reset screen orientation
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED
disableFullscreen()
// Reset status bar color
withStyledAttributes(0, intArrayOf(R.attr.colorPrimaryDark)) {
window.statusBarColor = getColor(0, Color.BLACK)
}
// Reset screen brightness
window.brightness = BRIGHTNESS_OVERRIDE_NONE
}