Commit Graph

118 Commits

Author SHA1 Message Date
4f0416e1c1 NumericUtils: remove possible trailing whitespace 2025-12-14 19:42:08 +01:00
8c2fcaaef5 MainActivity: do not switch logbook on reload 2025-12-14 19:42:08 +01:00
01907d7c4e LunaEvent: reorganize event text getters
Use method names that better reflect
the use of the returned text.
2025-12-14 19:42:08 +01:00
3a3dc2faf4 Add dynamic header setting
This makes the 'no breastfeeding' setting irrelevant.
2025-12-14 19:42:08 +01:00
2518118759 LunaEvent: use enum class for event types
This helps to have compile errors when some
case it not handled while adding a new type.
The enum class can also be interated over
to create a complete drop down list.
2025-12-14 19:42:08 +01:00
d8b67531db MainActivity: increase bottle volume to 340ml
This is the maximum amount found in sold bottles.
2025-12-14 19:42:08 +01:00
0a424e8807 improve statistics 2025-12-14 19:42:08 +01:00
8adacd3bfe gradle: use uniform implementation directive for sardine-android 2025-12-14 19:42:08 +01:00
508c14ff6e gradle: avoid inclusion of apk signing blobs
See https://android.izzysoft.de/articles/named/iod-scan-apkchecks?lang=en#blobs
2025-12-14 19:42:08 +01:00
7d67a2e33b gradle: set compileSDK/targetSdk to 36 2025-12-14 19:42:08 +01:00
a0dc023941 add statistics for bottle and sleep events 2025-12-14 19:42:08 +01:00
6759956461 MainActivity: show save button if any values has changed 2025-12-14 19:42:08 +01:00
c521a3373f MainActivity: use unique templates for notes 2025-12-14 19:42:08 +01:00
1ad5f31b32 LunaEvent: add sleep event 2025-12-14 19:42:03 +01:00
9f8f277d75 MainActivity: allow amount for poo and pee events
An unspecified amount has also been added
to have the same semantics as before.

During these actions, the strings for title
and description of dialogs have been cleaned up.
2025-11-19 20:37:10 +01:00
742c5515b1 strings: rename scale to weight in identifiers 2025-11-19 20:37:10 +01:00
d49701a488 LunaEvent: remove quantity when the value is invalid 2025-11-19 20:37:10 +01:00
fb6edf981b notes: add icons to use previous/next event as template 2025-11-19 20:37:10 +01:00
52b23151d6 MainActivity: preset quantity of bottle, weight and temperature
Use the quantity of previous events
to initialize new events.
2025-11-19 20:37:10 +01:00
23372408d5 events: allow editing of all used values
1. Allow to change the date/time and
other relevant values of an event
on creation and after it was created.

2. Harmonize layout file names and
variable names.
2025-11-19 20:37:01 +01:00
5eeb462836 Bumped version 2025-11-06 22:21:05 +01:00
6f3061974d fix puke event quantity
The LunaEvent class treats quantities of 0
as a value to set. To workaround this, the
quantity index needs to start at >0.
2025-11-06 21:49:08 +01:00
3ea396c045 Bumped version 2025-11-05 07:58:28 +01:00
7f67c758c9 activity_setting: fine tune layout style 2025-10-26 20:38:26 +01:00
dfa64d71a8 add signature setting
For multiple users it helps to
keep track about who did what.
2025-10-26 20:38:26 +01:00
b7180068f3 DateUtils: move event details formatting to DateUtils
Also do not display seconds, because it is not
meaningful and is not selected in date picker.
2025-10-26 20:38:22 +01:00
36b848b95e add bath event type 2025-10-26 13:54:16 +01:00
a1bde917f8 add no-breastfeeding help text 2025-10-26 13:54:16 +01:00
4f4ff5ed21 more_events_popup: move enema to bottom and adjust padding
Enemas are usually are rare thing. Let's
move it to the bottom. Also adjust padding
to have more space to display all items.
2025-10-26 13:54:16 +01:00
453d838470 add puke event 2025-10-26 13:54:04 +01:00
34aa092722 NumericUtils: provide fallback for LocaleData.getMeasurementSystem
LocaleData.getMeasurementSystem is available at API level 28
but the app supports API level 21.
2025-09-29 03:34:08 +02:00
961e7b90e7 small code cleanup
No code behavior has been changed.
2025-09-29 03:33:30 +02:00
a7c44df553 Bumped version 2025-09-21 09:21:04 +02:00
5df3b31e64 activity_main: lower margin from 10 to 5dp
The buttons are big enough for fingers.
Let's make the view more compact.
2025-09-19 12:41:55 +02:00
0a96fb91d7 DateUtils: simplify code 2025-09-19 12:41:55 +02:00
f4c526ff8d add previous/next event link to details dialog
The links will point to the previous/next
event of the same type
2025-09-19 12:41:51 +02:00
ea88fd6bb6 make more strings translateable 2025-09-16 21:11:52 +02:00
3e2bdca083 make some val constant 2025-09-16 21:11:52 +02:00
e5e486c315 remove unused imports 2025-09-16 21:11:52 +02:00
3f648a6490 remove stray 1 character from time 2025-09-16 21:11:52 +02:00
cc6ebc398c activity_main: move progress bar next to event list title
Save some vertical space and prevent vertical size change/flicker.
2025-09-16 21:11:52 +02:00
e1f48e6524 MainActivity: support 24h format 2025-09-16 21:11:52 +02:00
5e1c67d52d MainActivity: small code cleanup 2025-09-16 21:11:52 +02:00
3a457b2ae6 bigger font for event detail dialog 2025-09-16 21:11:52 +02:00
a2fd04d233 remove log event title
Keep the main page simpler and have a bit more
space for log messages.
2025-09-16 21:11:52 +02:00
f1f73b65f7 add setting to disable breastfeeding buttons
Some women do not breastfeed. Hide the buttons
in order to have more space for log messages.
2025-09-16 21:11:49 +02:00
5c247f5948 replace dp with sp
As suggested by android-studio.
2025-09-16 12:23:44 +02:00
83b77b40d6 values: escape apostrophe characters 2025-09-16 12:23:44 +02:00
25f7b1fc00 add password toggle view icon 2025-09-16 12:23:44 +02:00
a635e46180 layout_marginLeft is deprecated 2025-09-16 12:23:40 +02:00