Skip to content

Commit d0e2b1e

Browse files
committed
fix bug on selectedIndex
1 parent 5ed99b7 commit d0e2b1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pagingnavigation/src/main/java/id/co/edtslib/pagingnavigation/PagingNavigation.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ class PagingNavigation : LinearLayoutCompat {
4949
val width = if (it == value) shapeSelectedWidth else shapeSize
5050
val height = if (it == value) shapeSelectedHeight else shapeSize
5151

52-
view.isSelected = it == value
53-
5452
val layoutParams = view.layoutParams as LayoutParams
5553
layoutParams.width = width.toInt()
5654
layoutParams.height = height.toInt()
5755

5856
view.layoutParams = layoutParams
5957
}
6058

59+
view.isSelected = it == value
6160
}
6261
}
6362

0 commit comments

Comments
 (0)