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