[UI] Fixed white navigation bar on Now Playing
This commit is contained in:
parent
e5743ee98b
commit
1f84026682
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,7 @@ package code.name.monkey.appthemehelper
|
|||
import android.app.Activity
|
||||
import android.app.ActivityManager
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.view.View
|
||||
import androidx.annotation.ColorInt
|
||||
|
@ -34,11 +35,12 @@ object ATH {
|
|||
}
|
||||
|
||||
fun setLightNavigationbar(activity: Activity, enabled: Boolean) {
|
||||
activity.window?.apply {
|
||||
activity.window.apply {
|
||||
WindowInsetsControllerCompat(
|
||||
this,
|
||||
decorView
|
||||
).isAppearanceLightNavigationBars = enabled
|
||||
navigationBarColor = Color.TRANSPARENT
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue