From 7cd05c15c4f86e5336b26a1ed24ea93ddaef3a38 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 6 May 2024 00:11:58 +0200 Subject: [PATCH] fix: status bar doesn't follow app theme --- app/src/main/java/com/github/libretube/ui/base/BaseActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/base/BaseActivity.kt b/app/src/main/java/com/github/libretube/ui/base/BaseActivity.kt index 1d415c49c..cfe1dadd7 100644 --- a/app/src/main/java/com/github/libretube/ui/base/BaseActivity.kt +++ b/app/src/main/java/com/github/libretube/ui/base/BaseActivity.kt @@ -50,7 +50,7 @@ open class BaseActivity : AppCompatActivity() { // wait for the window decor view to be drawn before detecting display cutouts window.decorView.setOnApplyWindowInsetsListener { view, insets -> hasCutout = WindowHelper.hasCutout(view) - insets + window.decorView.onApplyWindowInsets(insets) } super.onCreate(savedInstanceState)