6 Commits

Author SHA1 Message Date
a1f3c7fdea MainActivity: generate dynamic menu from last two weeks 2026-02-19 10:36:01 +01:00
bba8ccd1c9 LunaEvent: rework sleep event
Make the UI more flexible and
slightly easier to understand.
2026-02-19 10:36:01 +01:00
d9d1b8cb83 MainActivity: rename datepicker 2026-02-19 10:36:01 +01:00
8b56d92ece layout: replace menu icon with utf8 character
The three dot menu icosn looks odd when stretched
due to the dynamic menu feature. Thus replace it
with the hamburger menu character that looks better
when scaled.
2026-02-19 10:36:01 +01:00
25ac67a45d MainActivity: sort events before saving
Also replace notifyItemInserted since it does not
call the adapter to redraw the row striping when
a new event is added.
2026-02-19 10:36:01 +01:00
8553e3cd7f StatisticsActivity: rework all statistics
Improve the overall code.
2026-02-19 10:35:57 +01:00

View File

@@ -361,10 +361,6 @@ class StatisticsActivity : AppCompatActivity() {
val data = BarData(set1) val data = BarData(set1)
data.setValueTextSize(12f) data.setValueTextSize(12f)
// does not work quite right yet
//Log.d(TAG, "xChartMax: ${barChart.xChartMax}")
//barChart.centerViewTo(barChart.xChartMax, 0F, YAxis.AxisDependency.LEFT)
val valueCount = min(values.size, 24) val valueCount = min(values.size, 24)
barChart.setData(data) barChart.setData(data)
barChart.legend.isEnabled = false barChart.legend.isEnabled = false