Fix Cards layout control IDs

This commit is contained in:
ajp_anton
2026-08-29 23:14:02 +00:00
parent c8d7e5005e
commit 179dc3a1db
3 changed files with 21 additions and 14 deletions
@@ -113,9 +113,16 @@ class CardsLayoutFragment : Fragment(R.layout.fragment_cards_layout) {
private fun controls(lockscreen: Boolean): Controls {
val b = binding!!
return if (lockscreen) b.lockscreenSettings.run {
Controls(maxRows, maxIcons, evenDistribution, limitWidth, iconHeight, iconHeightValue)
Controls(
lockscreenMaxRows,
lockscreenMaxIcons,
lockscreenEvenDistribution,
lockscreenLimitWidth,
lockscreenIconHeight,
lockscreenIconHeightValue,
)
} else b.aodSettings.run {
Controls(maxRows, maxIcons, evenDistribution, limitWidth, iconHeight, iconHeightValue)
Controls(aodMaxRows, aodMaxIcons, aodEvenDistribution, aodLimitWidth, aodIconHeight, aodIconHeightValue)
}
}