style: remove redundant public
modifier and fix variable declaration
This commit is contained in:
parent
6e88a9f1f6
commit
f71872d937
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ class CarouselRecyclerView @JvmOverloads constructor(
|
|||
|
||||
var flingMultiplier: Float = 1f
|
||||
|
||||
public var pendingScrollAfterReload: Boolean = false
|
||||
var pendingScrollAfterReload: Boolean = false
|
||||
|
||||
var useCustomDrawingOrder: Boolean = false
|
||||
set(value) {
|
||||
|
@ -458,7 +458,7 @@ class CarouselRecyclerView @JvmOverloads constructor(
|
|||
)
|
||||
val rawFlingCount = if (velocityX == 0) 0 else velocityX / 2000
|
||||
val flingCount = rawFlingCount.coerceIn(-maxFling, maxFling)
|
||||
var targetPos = (closestPosition + flingCount).coerceIn(0, layoutManager.itemCount - 1)
|
||||
val targetPos = (closestPosition + flingCount).coerceIn(0, layoutManager.itemCount - 1)
|
||||
return targetPos
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue