[UI] Fixed white navigation bar on Now Playing

This commit is contained in:
Prathamesh More 2021-12-02 01:17:23 +05:30
parent e5743ee98b
commit 1f84026682

View file

@ -3,6 +3,7 @@ package code.name.monkey.appthemehelper
import android.app.Activity import android.app.Activity
import android.app.ActivityManager import android.app.ActivityManager
import android.content.Context import android.content.Context
import android.graphics.Color
import android.os.Build import android.os.Build
import android.view.View import android.view.View
import androidx.annotation.ColorInt import androidx.annotation.ColorInt
@ -34,11 +35,12 @@ object ATH {
} }
fun setLightNavigationbar(activity: Activity, enabled: Boolean) { fun setLightNavigationbar(activity: Activity, enabled: Boolean) {
activity.window?.apply { activity.window.apply {
WindowInsetsControllerCompat( WindowInsetsControllerCompat(
this, this,
decorView decorView
).isAppearanceLightNavigationBars = enabled ).isAppearanceLightNavigationBars = enabled
navigationBarColor = Color.TRANSPARENT
} }
} }