mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Fix toolbar coloring behavior.
This commit is contained in:
committed by
Greyson Parrelli
parent
117c2ad5dd
commit
a3166a8c73
@@ -59,6 +59,10 @@ open class Material3OnScrollHelper(
|
||||
|
||||
init {
|
||||
lifecycleOwner.lifecycle.addObserver(object : DefaultLifecycleObserver {
|
||||
override fun onResume(owner: LifecycleOwner) {
|
||||
setColorImmediate()
|
||||
}
|
||||
|
||||
override fun onDestroy(owner: LifecycleOwner) {
|
||||
animator?.cancel()
|
||||
setStatusBarColor(previousStatusBarColor)
|
||||
|
||||
Reference in New Issue
Block a user