cleanup warnings

bs
Laurent 5 years ago
parent 1dd98ad18a
commit f2b4d29a1f
  1. 16
      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<TextPoint>()
var boardCardRects = mutableListOf<RectF>()
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}")

Loading…
Cancel
Save