Commit Graph

1895 Commits

Author SHA1 Message Date
Naveen Singh
3ffbbfb2e7 Merge branch 'master' into fix_silent_alarms 2025-03-24 04:09:17 +05:30
Naveen Singh
9a13e2ef53 Merge pull request #134 from FossifyOrg/1.1.0
Release 1.1.0
1.1.0
2025-03-24 03:42:04 +05:30
Naveen Singh
96797fb75a Update app version to 1.1.0 (2) 2025-03-24 02:46:56 +05:30
Naveen Singh
699be5438c Update changelog 2025-03-24 02:46:50 +05:30
Naveen Singh
ae60d5523d Delete description longer than 80 chars 2025-03-24 02:46:43 +05:30
Naveen Singh
0c3d0c4184 Mark app beta in app stores
It's not stable yet.
2025-03-24 02:08:32 +05:30
Naveen Singh
2ab666fb08 Merge pull request #130 from weblate/weblate-fossify-clock
Translations update from Hosted Weblate
2025-03-24 01:59:15 +05:30
Courtney Avidson
c13c1b659c Translated using Weblate (Latvian)
Currently translated at 4.2% (2 of 47 strings)

Translation: Fossify/Clock
Translate-URL: https://hosted.weblate.org/projects/fossify/clock/lv/
2025-03-23 15:39:31 +01:00
Naveen Singh
4ae0569a59 Use descriptive name 2025-03-22 02:11:44 +05:30
Naveen Singh
1b39dcc94a Don't dismiss alarms automatically
Alarm was being dismissed automatically when notification was tapped twice.
2025-03-22 02:05:56 +05:30
Naveen Singh
f3ab66004b Minor code improvement
- Replaced repeated code with `notificationManager` extension
- Formatted code
2025-03-21 22:51:52 +05:30
Naveen Singh
129abc1c65 Remove invalid parameter 2025-03-21 19:19:00 +05:30
Naveen Singh
9fa209dfbc Format code 2025-03-21 18:47:30 +05:30
Naveen Singh
dd5762c744 Remove notification channel deletion
It's not needed anymore since we no longer rely on notifications for sounding alarms
2025-03-21 18:40:02 +05:30
Naveen Singh
677ec58dfa Remove unused timer related code from reminder activity
It's not actually used, see https://github.com/FossifyOrg/Clock/issues/40
2025-03-21 18:37:49 +05:30
Naveen Singh
7a7e53ed09 Use a foreground service for sounding alarms
- Simplified the overengineered on/off screen notification logic. Alarms now use a notification with a full screen intent for reminder activity regardless of the device state.
- Added a foreground service, the app will no longer rely on repeating notification sounds or the reminder activity for sounding alarms.
- Simplified the reminder activity by delegating some responsibilities to the foreground service
2025-03-21 18:33:55 +05:30
Naveen Singh
fe498c9b4a Minor code formatting 2025-03-21 14:48:17 +05:30
Naveen Singh
01c6df4d00 Add content descriptions to buttons 2025-03-21 14:47:04 +05:30
Naveen Singh
3f6ddaed2e Disable notification auto cancelling
Alarm/timer notifications shouldn't be dismissed automatically.
2025-03-18 19:58:44 +05:30
elid
5f6ea1c8a3 Translated using Weblate (Hebrew)
Currently translated at 100.0% (47 of 47 strings)

Translation: Fossify/Clock
Translate-URL: https://hosted.weblate.org/projects/fossify/clock/he/
2025-03-18 12:01:07 +01:00
Naveen Singh
fc82299816 Merge pull request #132 from FossifyOrg/ask_notification_permission
Address some issues regarding missed alarms
2025-03-18 16:31:03 +05:30
Naveen Singh
22d0f69b29 Properly refresh alarms fragment
Adapter was being passed the same list of alarms over and over
2025-03-18 01:10:05 +05:30
Naveen Singh
2d3aa18e2c Properly disable expired alarms
- Moved duplicated code to an extension
 - Removed alarm clearing logic from alarms fragment as it's not necessary there. Instead, the alarms fragment is refreshed by `disableExpiredAlarm()`.
 - Disabled expired alarms when alarms are auto dismissed as well.
2025-03-18 01:09:01 +05:30
Naveen Singh
3b475642ce Always clear expired alarms
Same issue as 7d35b0413c.

Original code relied on the scheduled alarms returned by the system as a filter but the updated code by https://github.com/SimpleMobileTools/Simple-Clock/pull/469 clears/disables expired alarms when there are no enabled alarms which doesn't make much sense. One can not disable already disabled alarms
2025-03-17 21:32:28 +05:30
Naveen Singh
9ac0a4e1ac Ask for notification permission on startup
Previously, the app didn't ask for notification permission unless the user tried to enable/disable an alarm. This is a problem in case the notifications were turned off (for whatever reason) after an alarm was configured. The user would think that everything is ok and miss their alarm.

https://github.com/FossifyOrg/Clock/issues/89#issuecomment-2510246925
2025-03-17 19:41:49 +05:30
Naveen Singh
7d35b0413c Reschedule alarms properly
It seems faulty code was originally introduced in https://github.com/SimpleMobileTools/Simple-Clock/pull/469

Before that PR, the code rescheduled enabled alarms when there were no scheduled alarms according to the system APIs.

After that PR, the code rescheduled enabled alarms when there were NO enabled alarms enabled in the database i.e. a contradiction.

See https://github.com/FossifyOrg/Clock/issues/89
2025-03-17 18:27:23 +05:30
Naveen Singh
6dac731f6f Fix typo in variable name 2025-03-17 17:31:42 +05:30
Naveen Singh
e9afd550f0 Use safe context
Fixed crash `java.lang.IllegalStateException` in `updateAlarm()``
2025-03-17 16:52:28 +05:30
Naveen Singh
c3fe66251b Merge pull request #129 from FossifyOrg/fix_silent_alarms_113
Cancel notification when alarm is dismissed automatically
2025-03-16 02:02:54 +05:30
Naveen Singh
5e7b756257 Cancel alarm notification when alarm is auto dismissed
See https://github.com/FossifyOrg/Clock/issues/113
2025-03-16 01:12:56 +05:30
Naveen Singh
9221364ac9 Minor readability improvement 2025-03-15 23:50:52 +05:30
Naveen Singh
89979bef62 Use KTX extension 2025-03-15 17:49:17 +05:30
Naveen Singh
9f0111e384 Format some code 2025-03-15 17:47:25 +05:30
Naveen Singh
c6c0c6b761 Merge pull request #128 from FossifyOrg/fix_incorrect_toast
Fix misleading toast when disabling one-shot alarms
2025-03-15 11:54:38 +05:30
Naveen Singh
6df69d9f98 Avoid re-scheduling disabled one-shot alarms
https://github.com/FossifyOrg/Clock/issues/26
2025-03-15 00:04:56 +05:30
Naveen Singh
d957a56e34 Replace if with when and format code 2025-03-14 14:29:12 +05:30
Naveen Singh
1cc26e72a8 Merge pull request #99 from Joshix-1/master
Timezone aware scheduling of Alarms
2025-03-10 01:25:41 +05:30
Naveen Singh
6a749ee874 Merge pull request #126 from Aga-C/widget-open-tab
Fixed widget not respecting the tab setting (#125)
2025-03-10 01:03:45 +05:30
Agnieszka C
3599e0a8d5 Fixed widget not respecting the tab setting (#125) 2025-03-09 20:19:45 +01:00
Naveen Singh
6297777919 Avoid showing "0 minutes" as remaining time 2025-03-09 20:19:45 +05:30
Naveen Singh
b25ac8707b Rename snoozeTime back to snoozeMinutes 2025-03-09 19:07:03 +05:30
Naveen Singh
a3bc5da9e7 Minor readability improvement 2025-03-09 18:57:37 +05:30
Naveen Singh
f55fb2b433 Remove unnecessary recursion and simplify code 2025-03-09 18:55:27 +05:30
Naveen Singh
9b3d5a07b2 Remove unnecessary overload for setupAlarmClock() 2025-03-09 18:21:28 +05:30
Joshix
c1fac3559b update Context.setupAlarmClock 2025-03-09 11:00:00 +00:00
Joshix
49763b4664 remove weird snoozeAlarm method 2025-03-09 11:00:00 +00:00
Naveen Singh
a857d799d7 Merge branch 'master' into master 2025-03-09 08:19:49 +05:30
Naveen Singh
cadda80eb3 Merge pull request #112 from weblate/weblate-fossify-clock
Translations update from Hosted Weblate
2025-03-09 08:19:32 +05:30
Lula Bye
9f283a5bcb Translated using Weblate (French)
Currently translated at 100.0% (47 of 47 strings)

Translation: Fossify/Clock
Translate-URL: https://hosted.weblate.org/projects/fossify/clock/fr/
2025-03-08 22:07:32 +01:00
Naveen Singh
cfc764620b Merge branch 'master' into master 2025-03-07 19:25:50 +05:30