701 Commits

Author SHA1 Message Date
bfe597b24d Update news.md 2023-12-15 19:33:37 +01:00
59cb2d2ff9 Added Themed / Monochrome Launcher icon support for devices that support it
Signed-off-by: Sébastien Delord <57289288+sebastien46@users.noreply.github.com>
2023-12-09 16:56:10 +01:00
4eb5c72e43 build: try to not hardcode maven central URL 2023-12-09 10:12:49 +01:00
0ede7afab6 Fix no action on pressing the back button on the action bar
Pressing the back button on the action bar of these 3 activities
resulted in no action.

At some point in the past, just calling setDisplayHomeAsUpEnabled(true)
was enough, but looks like these days nothing happens by default.

Fix the problem by explicitly handling android.R.id.home and there
finishing the current activity.
2023-12-08 22:43:33 +01:00
4d9742c176 Update dependencies (2023-12) 2023-12-07 13:39:48 +01:00
d7316653c0 plees-tracker 7.6.4 v7.6.4 2023-12-01 23:14:14 +01:00
b13713d1bf Migrate from kapt to KSP
Also update to kotlin 1.9.10, see
<https://stackoverflow.com/questions/77342860/how-to-resolve-the-gradle-build-error-java-lang-nosuchmethoderror>.

Change-Id: Iaf7b8af6f656b0acdc15361ecb2658c24e642f22
2023-11-10 22:36:35 +01:00
56b3ec45e0 Update dependencies (2023-11)
Change-Id: Idf60b98d5737ba7a0d5a28e24540a5982fdfca47
2023-11-01 20:07:26 +01:00
5f74501000 Target Android 14
Change-Id: If7d766912d12fde6e99158dfb1cd95a78d0553a8
2023-11-01 19:52:51 +01:00
9936fa0219 plees-tracker 7.6.3
Change-Id: Ib1069cf250a957831ff5ca98dfc5ea3a172766b6
v7.6.3
2023-11-01 14:36:58 +01:00
0a6c7554b9 notification service: add foreground service type
This will be required on android 14, see
<https://developer.android.com/about/versions/14/changes/fgs-types-required>.

Change-Id: Ia25f02fb0a6c70c7d42458b79e5a5034bf5094fc
2023-10-27 21:38:12 +02:00
a9fdb43b5d Update compileSdk to 34
Change-Id: Ic934a0f1594b63a5f8ef9989a33f60f5d92faa04
2023-10-20 22:53:49 +02:00
810bd2d73a guide: update news.md
Change-Id: I8b3748ea8e17555de521e23c0446c6b386163038
2023-10-14 13:42:18 +02:00
da673ff678 Replace subsequent checks with 'isNullOrEmpty()' call
Change-Id: Idf76176599df9b7d2d2df9bee0123ec99854fffc
2023-10-13 23:12:14 +02:00
9a6606105f import file: handle when the storage is in fact a network one
Import from file is normally a non-blocking operation, so it can be done
on the UI, except when going via the storage access framework, e.g. when
the file is provided by nextcloud. This resulted in a crash like:

	2023-10-13 22:10:48.342  7896-7896  AndroidRuntime          hu.vmiklos.plees_tracker.debug       E  FATAL EXCEPTION: main
	    at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:153)
	    at android.content.ContentProviderProxy.openTypedAssetFile(ContentProviderNative.java:814)
	    at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:2043)
	    at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1858)
	    at android.content.ContentResolver.openInputStream(ContentResolver.java:1528)
	    at hu.vmiklos.plees_tracker.DataModel.importData(DataModel.kt:163)

The NetworkOnMainThreadException is thrown because we actually do
networking on the main thread, but that should be done on a thread to
not block the UI.

Fix the problem by wrapping the IO part of importData() in a
`withContext(Dispatchers.IO)` block, but keep the toast on the main
thread, as UI calls are only allowed on the main thread.

Fixes <https://github.com/vmiklos/plees-tracker/issues/407>.

Change-Id: Ia9d691fd178c343554ede86c39a801134f2aab2e
2023-10-13 22:53:13 +02:00
bbea2db161 Update dependencies (2023-10)
Change-Id: Ibf53fc179f500e00b375e37ede01832dd5619952
2023-10-02 22:22:12 +02:00
1d2ce42802 plees-tracker 7.6.2
Change-Id: I049bdd03e1cd209f1a674204e42f4b4a648fbcb4
v7.6.2
2023-10-02 19:41:02 +02:00
5896130d37 Use 'tasks.register' to avoid unnecessary configuration
Change-Id: Ie4db2d80db0ea005e6c26d927982849ee4c42dd4
2023-09-22 20:08:51 +02:00
97ff50022d Update news.md
Change-Id: I8e7ed37ae8a6aa0d0d4ec0c6bf4afb19d9e18652
2023-09-15 22:15:17 +02:00
e42e6cab47 Update dependencies (2023-09)
Change-Id: If552a8f828b65f1a47de0dd0f9946f3ccbd03717
2023-09-15 22:15:17 +02:00
5136382261 doc: Added variance graph guide
Change-Id: I16bbbabab3aedeb5d79b166683749edc9bbccafc
2023-09-02 19:25:52 +02:00
98f9d539e7 feat: Variance and standard deviation graph
Closes <https://github.com/vmiklos/plees-tracker/issues/388>.

Change-Id: Iea9444280c362a2fb4072f4e59d5ab4df11cac99
2023-09-02 19:25:52 +02:00
6565f99e77 plees-tracker 7.6.1
Change-Id: I93a486006482a3fa47ae84ae493635acbe528ead
v7.6.1
2023-09-01 22:41:26 +02:00
cde68447c7 tools: try to fix ci-build.sh to work without a KEYSTORE
Hopefully this fixes the CI builds for PRs where the source branch is in
a fork.

Change-Id: Id5396ac5471582d0251e28acef7ba5de0ae43964
2023-09-01 22:28:36 +02:00
acaf69e2f7 Update news.md
Change-Id: Ib3986021e8393fdd7198b53c57d0fd5ea2ec0812
2023-09-01 22:28:36 +02:00
fdf9e6967b build: Add debug suffix variant 2023-09-01 21:41:24 +02:00
9ec3c609a8 Export to file: avoid reporting success in toast on failure
It turns out openOutputStream() can throw an exception, which is not
obvious at first, since it returns a nullable output stream, so first I
assumed that it returns a null output stream on failure.

Also, given that it was assumed export can't reach showing a toast on
failure, we always presented success. Fix this and report an error on
failure.

Fixes <https://github.com/vmiklos/plees-tracker/issues/406>.

Change-Id: Ic5922e4b38f544debe0888bd636d21be8fe35f49
2023-08-11 22:13:43 +02:00
c84303173b Update dependencies (2023-08)
Change-Id: I239446a232338e31f871dd6a4f507b2731b9f07c
2023-08-04 23:28:27 +02:00
bf13f4b4ac plees-tracker 7.6.0
Change-Id: I5980ef6027145f497c0ff810eadc32396bac087a
v7.6.0
2023-08-03 20:00:00 +02:00
3cd526a0ae guide: improve wording of the 'Ignore empty days when showing average of daily sums' setting
It's not the setting that ignores something.

Change-Id: Iaecb0b3f9306459b70fab191f0d56497bcb0dae1
2023-07-30 20:30:19 +02:00
ba5360c07f Update news
And fix a spelling mistake on the UI / documentation.

Change-Id: Iff239cd8ef1e571e353a01294dbb36cd0e88b72f
2023-07-07 23:11:22 +02:00
6eb178f6a5 Average of daily sums: add a mode to ignore empty days
And enable it by default, see the guide for rationale.

Fixes <https://github.com/vmiklos/plees-tracker/issues/366>.

Change-Id: Ie09db97d72eafbdfbe665ce818133d5a0df5ee03
2023-07-07 22:48:18 +02:00
9ce638e252 Update dependencies (2023-07)
Change-Id: I4e1428a53835ff91f5d5141852acdcf7deddbfea
2023-07-03 20:29:08 +02:00
69ca514e47 plees-tracker 7.5.5
Change-Id: I4a1d5eb2126b556eb50a8646a050d19a2f48f433
v7.5.5
2023-07-02 15:18:14 +02:00
97310bb031 Move lambda argument out of parentheses
No functional changes are intended.

Change-Id: I83dbd62117459fb878351e40e267c2803dc5c82f
2023-06-30 16:02:21 +02:00
436a143829 dark mode: improve colots of the start/stop button
Fixes <https://github.com/vmiklos/plees-tracker/discussions/387>.

Change-Id: Iddcc2fd2854db6c301ce621b6f3daeee743de8e1
2023-06-09 22:20:57 +02:00
8085fc1a10 Update dependencies (2023-06)
Change-Id: If196b192ab7a160885780f85cd8f39f9c67cacd1
2023-06-02 19:30:39 +02:00
4128cbcfba plees-tracker 7.5.4
Change-Id: I3b55d5a97ae7c90999672ffd502dc3792e9ba5f9
v7.5.4
2023-06-02 18:32:10 +02:00
13d1bbd04a guide: update contributors and news
Change-Id: I77a579860aeb3290b531e13968d0c8a7fff16061
2023-05-10 16:21:08 +02:00
2dd0ce1d30 Enable editing start and end date+time of a sleep separately
Fixes <https://github.com/vmiklos/plees-tracker/issues/373>.

Change-Id: I4762d9f35191faf5d8a6601d695f6f38185f3de0
2023-05-10 15:56:00 +02:00
b1fec4eccc guide: settle down on plees-tracker
Not Plees Tracker or Plees tracker.

Change-Id: I0d8667d523749e4f68b740dcb6de1deece088e31
2023-05-10 09:04:24 +02:00
f9e44aa454 Update dependencies (2023-05)
Change-Id: If72346eba0be01e0f47b85216046578ff46e6953
2023-05-01 15:12:55 +02:00
c1f2c4bc45 plees-tracker 7.5.3
Change-Id: Ib3b78f8c100921e33a54e933108076acee39521b
v7.5.3
2023-05-01 14:22:34 +02:00
7a38d5936f guide: update news.md
Change-Id: Ie1fba0fc83b7a1ec68dabb950a8d6228130027e3
2023-04-14 22:03:53 +02:00
c85496cfc5 graphs: add a stop time graph
Leaving bed in a consistent time is as useful as enterint bed in a
consistent time.

Fixes <https://github.com/vmiklos/plees-tracker/issues/358>.

Change-Id: Ib676ca3fc2a12cc2500d06074e8695404b4bd7e6
2023-04-14 21:34:20 +02:00
72de89aff9 plees-tracker 7.5.2
Change-Id: Ia45431a63c3314df4ddf3862c13372850a8357d9
v7.5.2
2023-04-04 17:29:01 +02:00
eeef829264 Update dependencies (2023-04)
Change-Id: I33e9686f54d08b418cfdded1b7c11f277a3e67c6
2023-04-01 09:31:04 +02:00
7e94f2f78c guide: update news.md
Change-Id: I52567fcf0d3103c5183b10f15f16a8046df61431
2023-03-17 23:11:23 +01:00
bc8120b4ce Update dependencies (2023-03)
Change-Id: I62ee8287ec844985ac26ecc881c2d95c24a6e50b
2023-03-11 08:23:52 +01:00
3008cf590f Don't toggle tracking state on rotation
This could happen when the quick setting tile launched the activity,
then rotation re-launched the activity with the same intent parameters,
so the tracking stopped.

As suggested in the issue, just remove the parameter once consumed.

Fixes <https://github.com/vmiklos/plees-tracker/issues/365>.

Change-Id: I9b95959fe10065008492e8aa49f9045400420ea5
2023-03-10 22:57:40 +01:00