Restore stock cards when custom rendering stops
This commit is contained in:
1 parent
3289d62ca0
commit
dc2d50868f
1 file changed
+5
@@ -32,6 +32,11 @@ internal class OneUiCardsGridRenderer {
|
||||
|
||||
fun refresh(container: ViewGroup, active: Boolean, visibleCardKeys: Set<String>, config: Config) {
|
||||
val state = state(container)
|
||||
if (!active) {
|
||||
state.config = config
|
||||
suspend(container, false)
|
||||
return
|
||||
}
|
||||
state.active = active
|
||||
state.visibleCardKeys = visibleCardKeys
|
||||
state.config = config
|
||||
|
||||
Reference in new issue
Block a user