From da692730f7b1e817ac7ba3e7904c00352ab2eb8e Mon Sep 17 00:00:00 2001 From: Maxr1998 Date: Sun, 13 Dec 2020 17:39:49 +0100 Subject: [PATCH] Don't unnecessarily set statusBarColor in native player --- .../main/java/org/jellyfin/mobile/player/PlayerFragment.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/org/jellyfin/mobile/player/PlayerFragment.kt b/app/src/main/java/org/jellyfin/mobile/player/PlayerFragment.kt index f02e5663b..d751b1a90 100644 --- a/app/src/main/java/org/jellyfin/mobile/player/PlayerFragment.kt +++ b/app/src/main/java/org/jellyfin/mobile/player/PlayerFragment.kt @@ -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 }