Skip to content

Commit

Permalink
Merge pull request #203 from TimerTiTi/release-1.4.5
Browse files Browse the repository at this point in the history
Release 1.4.5
  • Loading branch information
koreatlwls authored Nov 17, 2024
2 parents 7b00292 + 0a06170 commit 2792952
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object BuildType {

object AppConfig {
const val APP_ID = "com.titi.app"
const val APP_VERSION_NAME = "1.4.4"
const val APP_VERSION_CODE = 44
const val APP_VERSION_NAME = "1.4.5"
const val APP_VERSION_CODE = 46
const val APP_NAME = "TiTi"
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,22 @@ fun TdsCircularProgressIndicator(
val insideSize = minSize * 0.4
val fontSize = with(density) { (insideSize / 2).toSp() }

CircularProgressIndicator(
modifier = Modifier.fillMaxSize(),
progress = { 1f },
color = color.copy(alpha = 0.5f),
strokeWidth = strokeWidth,
trackColor = Color.Transparent,
)

CircularProgressIndicator(
modifier = Modifier.fillMaxSize(),
progress = { sumTime / maxTime.toFloat() },
color = color,
trackColor = color.copy(alpha = 0.5f),
trackColor = Color.Transparent,
strokeCap = StrokeCap.Round,
strokeWidth = strokeWidth,
gapSize = 0.dp,
)

TdsText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ fun areDatesInSameMonth(localDate: LocalDate, zonedDateTime: ZonedDateTime): Boo

fun areDatesInSameWeek(localDate: LocalDate, zonedDateTime: ZonedDateTime): Boolean {
val (monday, sunday) = getMondaySunday(localDate)

return zonedDateTime.isAfter(monday) && zonedDateTime.isBefore(sunday)
return (zonedDateTime.isEqual(monday) || zonedDateTime.isAfter(monday)) && zonedDateTime.isBefore(sunday)
}

fun areDatesInSameDay(localDate: LocalDate, zonedDateTime: ZonedDateTime): Boolean {
Expand Down
5 changes: 3 additions & 2 deletions release-note.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
TiTi android 1.4.4
- fix: wrong week total time in week log
TiTi android 1.4.5
- fix: missing monday in home page week chart
- TdsCircularProgressIndicator

0 comments on commit 2792952

Please sign in to comment.