[Android] Fix onboarding customize screen status bar icon color

Nicolas Pomepuy git at videolan.org
Fri May 6 09:45:34 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Apr 28 08:22:16 2022 +0200| [168f1617a916bdcf316ca3c01b380c208a058e02] | committer: Duncan McNamara

Fix onboarding customize screen status bar icon color

Fixes #2498

> https://code.videolan.org/videolan/vlc-android/commit/168f1617a916bdcf316ca3c01b380c208a058e02
---

 application/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt
index d7403da91..5a64b8c57 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/SecondaryActivity.kt
@@ -30,6 +30,7 @@ import android.view.MenuItem
 import android.view.View
 import androidx.coordinatorlayout.widget.CoordinatorLayout
 import androidx.core.os.bundleOf
+import androidx.core.view.WindowInsetsControllerCompat
 import androidx.fragment.app.Fragment
 import com.google.android.material.appbar.AppBarLayout
 import org.videolan.libvlc.Dialog
@@ -78,6 +79,8 @@ class SecondaryActivity : ContentActivity(), IDialogManager {
         setContentView(R.layout.secondary)
         initAudioPlayerContainerActivity()
 
+        if (isOnboarding) WindowInsetsControllerCompat(window, window.decorView).isAppearanceLightStatusBars = false
+
         val fph = findViewById<View>(R.id.fragment_placeholder)
         val params = fph.layoutParams as CoordinatorLayout.LayoutParams
 



More information about the Android mailing list