Fix Cards layout control IDs
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user