Skip to content

Commit

Permalink
Rename params
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnlm committed Nov 9, 2023
1 parent 12917e6 commit a97bead
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ class ThemeActivity : ThemedActivity() {
setHasFixedSize(true)
layoutManager =
object : GridLayoutManager(context, skinsColumns) {
override fun checkLayoutParams(lp: RecyclerView.LayoutParams?): Boolean {
override fun checkLayoutParams(layoutParams: RecyclerView.LayoutParams?): Boolean {
val lpSize = width / (skinsColumns + 1)
lp?.height = lpSize
lp?.width = lpSize
layoutParams?.height = lpSize
layoutParams?.width = lpSize
return true
}
}
Expand Down

0 comments on commit a97bead

Please sign in to comment.