Skip to content

Commit

Permalink
Merge pull request #260 from josephroqueca/v3.1.2
Browse files Browse the repository at this point in the history
V3.1.2
  • Loading branch information
autoreleasefool authored Jan 25, 2019
2 parents 833a86f + 23d2a53 commit d937580
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
9 changes: 7 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Most recent version

## v3.1.2
```
- Fixed a crash some users experienced when trying to open a game
```

# Legacy versions

## v3.1.1
```
This version contains a bunch of bug fixes! Here's just a few:
Expand All @@ -8,8 +15,6 @@ This version contains a bunch of bug fixes! Here's just a few:
- Prevented scores from dropping below zero when there are too many fouls
```

# Legacy versions

## v3.1.0
```
Thank you for using the app while some of the kinks in the new version are worked out!
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'kotlin-android-extensions'

def versionMajor = 3
def versionMinor = 1
def versionPatch = 1
def versionPatch = 2

android {
compileSdkVersion 28
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/assets/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<b>v3.1.2</b>
- Fixed a crash some users experienced when trying to open a game

<b>v3.1.1</b>
This version contains a bunch of bug fixes! Here's just a few:
- Creating or opening an event should no longer crash the app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ class GameFragment : BaseFragment(),
pinLayout.updatePinImage(index, pin.isDown)
}

// Update next/prev frame buttons
gameHeader.hasPreviousFrame = !gameState.isFirstBall && !gameState.currentGame.isManual
gameHeader.hasNextFrame = delegate?.isFabEnabled == true

// Set which pins are enabled/disabled
if (gameState.currentGame.isLocked) {
for (i in 0 until Game.NUMBER_OF_PINS) { pinLayout.setPinEnabled(i, false) }
Expand Down Expand Up @@ -466,8 +470,6 @@ class GameFragment : BaseFragment(),
render(ballChanged = true)
invalidateFab()

gameHeader.hasPreviousFrame = !gameState.isFirstBall && !gameState.currentGame.isManual
gameHeader.hasNextFrame = delegate?.isFabEnabled == true
if (gameState.isLastBall) {
autoEventController.delay(GameAutoEventController.AutoEvent.Lock)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class StatisticGraphFragment : BaseFragment(),
val context = context ?: return
launch(Android) {
val (graphLines, graphLabels) = unit.getStatisticGraphData(context, statisticId, switchAccumulate.isChecked).await()
if (graphLines[0].entries.size <= 1 || graphLabels.size <= 1) {
if (graphLines.isEmpty() || graphLines[0].entries.size <= 1 || graphLabels.size <= 1) {
return@launch
}

Expand Down

0 comments on commit d937580

Please sign in to comment.