diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/feed/FeedFragment.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/feed/FeedFragment.kt index 5afab74a..6402a52e 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/feed/FeedFragment.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/feed/FeedFragment.kt @@ -466,9 +466,9 @@ class FeedFragment : FilterableFragment(), RowRepresentableDelegate { */ private fun createNewHandHistory() { -// val intent = Intent(requireContext(), TestActivity::class.java) -// startActivity(intent) -// return + val intent = Intent(requireContext(), TestActivity::class.java) + startActivity(intent) + return AppGuard.endOfUse?.let { endDate -> diff --git a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt index 051bb819..0e3d4afc 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/modules/handhistory/model/ActionList.kt @@ -727,7 +727,12 @@ class ActionList(var listener: ActionListListener? = null) : ArrayList { - return this.playerCardRects[i] + fun cardRects(positionIndex: Int): List { + return this.playerCardRects[positionIndex] } fun lastActionBeforeStreet(street: Street): ComputedAction? { @@ -406,16 +403,16 @@ class ReplayerConfiguration(var handHistory: HandHistory) { return this.actionList.activePositionIndexes(index) } - fun playerRemainingStack(i: Int): Double? { + fun playerRemainingStack(positionIndex: Int): Double? { this.lastActionAtStep?.action?.index?.let { index -> - return this.actionList.playerRemainingStack(i, index) + return this.actionList.playerRemainingStack(positionIndex, index) } - return null + return this.handHistory.playerSetupForPosition(positionIndex)?.stack } - fun lastChipCommittingActionOfPlayer(i: Int): ComputedAction? { + fun lastChipCommittingActionOfPlayer(positionIndex: Int): ComputedAction? { this.lastActionAtStep?.action?.index?.let { index -> - return this.actionList.lastChipCommittingActionOfPlayer(i, index) + return this.actionList.lastChipCommittingActionOfPlayer(positionIndex, index) } return null } @@ -424,12 +421,12 @@ class ReplayerConfiguration(var handHistory: HandHistory) { this.currentFrame += 1 } - fun animatedChipCircleFromPot(i: Int): Circle { - return this.animatedChipCircle(this.potChipCircle, this.chipCircle(i)) + fun animatedChipCircleFromPot(positionIndex: Int): Circle { + return this.animatedChipCircle(this.potChipCircle, this.chipCircle(positionIndex)) } - fun animatedChipCircleToPot(i: Int): Circle { - return this.animatedChipCircle(this.chipCircle(i), this.potChipCircle) + fun animatedChipCircleToPot(positionIndex: Int): Circle { + return this.animatedChipCircle(this.chipCircle(positionIndex), this.potChipCircle) } private fun animatedChipCircle(origin: Circle, destination: Circle): Circle {