From ac196227b2e291b22e4134354830b6cf025d9fb1 Mon Sep 17 00:00:00 2001 From: Laurent Date: Mon, 15 Jun 2020 10:14:44 +0200 Subject: [PATCH] Fixes frames for street --- .../modules/handhistory/replayer/ReplayerConfiguration.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt index 41a710ad..ddf3c27a 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/replayer/ReplayerConfiguration.kt @@ -41,13 +41,19 @@ class ReplayerConfiguration(var handHistory: HandHistory) { get() { return when (val step = this.currentStep) { is ComputedAction -> FrameType.STATE - is Street -> { + Street.SUMMARY -> { when (this.currentFrame) { in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION in (framesForChipsAnimation until 2 * framesForChipsAnimation) -> FrameType.DISTRIBUTION_ANIMATION else -> FrameType.STATE } } + is Street -> { + when (this.currentFrame) { + in (0 until framesForChipsAnimation) -> FrameType.GATHER_ANIMATION + else -> FrameType.STATE + } + } else -> throw PAIllegalStateException("unmanaged step: $step") } }