Skip to content

Commit

Permalink
🔖 Prepare release 3.21.5
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Colman Lopes <[email protected]>
  • Loading branch information
LeoColman committed Apr 27, 2024
1 parent 92dbaaf commit 4ea235e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ android {
applicationId = "br.com.colman.petals"
minSdk = 21
targetSdk = 34
versionCode = 321004
versionName = "3.21.4"
versionCode = 321005
versionName = "3.21.5"

testApplicationId = "$applicationId.test"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ open class Period(val days: Int) : Comparable<Period> {
return days
}


data object Zero : Period(0)
data object Week : Period(7)
data object TwoWeek : Period(14)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,12 @@ fun UsePerDayOfWeekGraph(useGroups: Map<Period, List<Use>>) {
val gramsData = useGroups.map { (period, uses) ->
val daysExceedingWeek = period.days % 7
val weekPeriod = period.minusDays(daysExceedingWeek)
val weekUses = if (weekPeriod == Period.Zero) uses else uses.filter {
it.localDate > LocalDate.now().minusDays(weekPeriod.days.toLong())
val weekUses = if (weekPeriod == Period.Zero) {
uses
} else {
uses.filter {
it.localDate > LocalDate.now().minusDays(weekPeriod.days.toLong())
}
}

val label = weekPeriod.label()
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/changelogs/321005.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed problem with week view never showing "Today"

0 comments on commit 4ea235e

Please sign in to comment.