We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ed99b7 commit d0e2b1eCopy full SHA for d0e2b1e
pagingnavigation/src/main/java/id/co/edtslib/pagingnavigation/PagingNavigation.kt
@@ -49,15 +49,14 @@ class PagingNavigation : LinearLayoutCompat {
49
val width = if (it == value) shapeSelectedWidth else shapeSize
50
val height = if (it == value) shapeSelectedHeight else shapeSize
51
52
- view.isSelected = it == value
53
-
54
val layoutParams = view.layoutParams as LayoutParams
55
layoutParams.width = width.toInt()
56
layoutParams.height = height.toInt()
57
58
view.layoutParams = layoutParams
59
}
60
+ view.isSelected = it == value
61
62
63
0 commit comments