Skip to content

Commit

Permalink
Upgrade Vico from 2.0.0-beta.1 to 2.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
meikpiep committed Nov 10, 2024
1 parent fbd23de commit ce352fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ class StatisticsActivity : AppCompatActivity() {
color = MaterialColors.getColor(chartView.rootView, R.attr.colorCustomColor1),
),
)
chartView.chart?.decorations = listOf(averageLine)

chartView.chart =
chartView.chart!!.copy(
decorations = listOf(averageLine),
)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ class StatisticsDurationDiagramFragment :
val axis =
binding.overallDuration.chart!!.startAxis as VerticalAxis

binding.overallDuration
.chart!!
.startAxis =
axis.copy(
valueFormatter = { _, value, _ ->
Utils.displayableGameDuration(value.toInt().seconds)
},
)
binding.overallDuration.chart =
binding.overallDuration
.chart!!
.copy(
startAxis =
axis.copy(
valueFormatter = { _, value, _ ->
Utils.displayableGameDuration(value.toInt().seconds)
},
),
)

binding.overallDurationMinimum.text =
Utils.displayableGameDuration(overall.solvedDurationMinimum.seconds)
Expand Down
1 change: 1 addition & 0 deletions libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ thirdparty-ferriswheel = { group = "com.github.meikpiep", name = "Ferris-Wheel",
thirdparty-navigationdrawer = { group = "com.mikepenz", name = "materialdrawer", version = "9.0.2" }
thirdparty-balloon = { group = "com.github.skydoves", name = "balloon", version = "1.6.10" }
thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.0-beta.1" }
thirdparty-vico = { group = "com.patrykandpatrick.vico", name = "views", version = "2.0.0-beta.2" }
thirdparty-androidplot = { group = "com.androidplot", name = "androidplot-core", version = "1.5.11" }
thirdparty-leakcanary = { group = "com.squareup.leakcanary", name = "leakcanary-android", version = "2.14" }

Expand Down

0 comments on commit ce352fc

Please sign in to comment.