Skip to content

Commit

Permalink
Fix bug where time was displayed upside down
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Mar 26, 2024
1 parent 3a4423a commit 7e7424d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/net/leodesouza/blitz/ui/ChessClockScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ private fun IsLeaningRightHandler(
val orientation = orientationProvider()
val isLeaningRight = isLeaningRightProvider()

val isChangingFromRightToLeft = isLeaningRight && orientation in 10 until 170
val isChangingFromLeftToRight = !isLeaningRight && orientation in 190 until 350
val isChangingFromRightToLeft = !isLeaningRight && orientation in 10 until 170
val isChangingFromLeftToRight = isLeaningRight && orientation in 190 until 350
if (isChangingFromRightToLeft || isChangingFromLeftToRight) {
onLeaningSideChanged()
}
Expand Down

0 comments on commit 7e7424d

Please sign in to comment.