diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerAnimator.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerAnimator.kt index 769c924f..5180842b 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerAnimator.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerAnimator.kt @@ -104,7 +104,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { step is ComputedAction && step.street == Street.PREFLOP && step.action.type == Action.Type.FOLD -> { FrameType.STATE.visualOccurences / 4 } - this.currentStepIndex == this.steps.size - 1 && this.currentFrameIndex == this.numberOfFramesForCurrentStep - 1 -> { + this.currentStepIndex == this.steps.size - 1 && this.currentFrameIndex == this.numberOfFramesForCurrentStep -> { FrameType.STATE.visualOccurences * 4 } else -> this.frameType.visualOccurences @@ -208,7 +208,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { private var chipTextPoints = mutableListOf() var boardCardRects = mutableListOf() - var dealerBottomOriented = true + private var dealerBottomOriented = true val dealerCircle: Circle get() { val rect = this.playerStackRects.last() @@ -267,10 +267,10 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { val playerPerColumn = if (portrait) base * hwRatio else base val playerPerRow = if (portrait) base else base * hwRatio - val grid = when (this.handHistory.numberOfPlayers) { - 9, 10 -> Pair(4f, 5f) - else -> Pair(3.7f, 4.7f) - } +// val grid = when (this.handHistory.numberOfPlayers) { +// 9, 10 -> Pair(4f, 5f) +// else -> Pair(3.7f, 4.7f) +// } Timber.d("playerPerRow = $playerPerRow, playerPerColumn = $playerPerColumn") // val playerPerColumn = if (portrait) grid.second else grid.first @@ -529,7 +529,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { Timber.d("Directories creation = $mkdirs") } - (this.currentStepIndex until this.steps.size).forEach { + (this.currentStepIndex until this.steps.size).forEach { _ -> (0 until this.frameManager.totalFrames).forEach { _ -> @@ -580,7 +580,7 @@ class ReplayerAnimator(var handHistory: HandHistory, var export: Boolean) { Timber.d("Step count = ${this.steps.size}") // The first steps are blinds and we don't animate them - (this.currentStepIndex until this.steps.size).forEach { + (this.currentStepIndex until this.steps.size).forEach { _ -> // Timber.d("STEP [$index] >> ($handStep): Frame count = ${this.frameManager.totalFrames}")