Fixed support page
This commit is contained in:
parent
d65314f4b8
commit
d1ecdab42b
17 changed files with 68 additions and 76 deletions
|
@ -31,9 +31,11 @@ object ATH {
|
|||
val decorView = activity.window.decorView
|
||||
val systemUiVisibility = decorView.systemUiVisibility
|
||||
if (enabled) {
|
||||
decorView.systemUiVisibility = systemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||
decorView.systemUiVisibility =
|
||||
systemUiVisibility or View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR
|
||||
} else {
|
||||
decorView.systemUiVisibility = systemUiVisibility and View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.inv()
|
||||
decorView.systemUiVisibility =
|
||||
systemUiVisibility and View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR.inv()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -93,7 +95,17 @@ object ATH {
|
|||
// Task description requires fully opaque color
|
||||
colorFinal = ColorUtil.stripAlpha(colorFinal)
|
||||
// Sets color of entry in the system recents page
|
||||
activity.setTaskDescription(ActivityManager.TaskDescription(activity.title as String?, null, colorFinal))
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
activity.setTaskDescription(
|
||||
ActivityManager.TaskDescription(
|
||||
activity.title as String?,
|
||||
-1,
|
||||
colorFinal
|
||||
)
|
||||
)
|
||||
} else {
|
||||
activity.setTaskDescription(ActivityManager.TaskDescription(activity.title as String?))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue