Fix AppBar lift state when snapped (#6103)
status bar foreground alpha is now handled separately
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.google.android.material.shape
|
||||
|
||||
/**
|
||||
* Use this instead of [MaterialShapeDrawable.getAlpha].
|
||||
*
|
||||
* https://github.com/material-components/material-components-android/issues/1796
|
||||
*/
|
||||
fun MaterialShapeDrawable.getStateAlpha(): Int {
|
||||
return (constantState as? MaterialShapeDrawable.MaterialShapeDrawableState)?.alpha ?: alpha
|
||||
}
|
||||
Reference in New Issue
Block a user