[X] I am able to reproduce the bug with the latest version.
[X] I made sure that there are no existing issues - open or closed.
[X] I have taken the time to fill in all the required details in an appropriate descriptive way. I understand that the bug report will be dismissed otherwise.
[X] This issue contains only one bug.
Affected app version
v2.4.0
Steps to reproduce the bug
Create a custom data plan and set it to automatically refresh.
Reboot your phone at least once.
Wait for the data plan to expire.
Expected behavior
It refreshes for the next period.
Actual behavior
The old plan remains active.
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 14
Affected device model
Sony Xperia 10 V
Additional context
As far as I can tell, data plan refresh only works via alarms (i.e. there's no fallback check for an outdated data plan when opening the app) and setRefreshAlarm() only gets called when the data plan settings are updated, or else when the previous alarm fires.
However AlarmManager alarms all expire if the device is rebooted and have to be re-set after afterwards when receiving ACTION_BOOT_COMPLETED or whatever other way might be appropriate.
Checklist
Affected app version
v2.4.0
Steps to reproduce the bug
Expected behavior
It refreshes for the next period.
Actual behavior
The old plan remains active.
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 14
Affected device model
Sony Xperia 10 V
Additional context
As far as I can tell, data plan refresh only works via alarms (i.e. there's no fallback check for an outdated data plan when opening the app) and
setRefreshAlarm()
only gets called when the data plan settings are updated, or else when the previous alarm fires.However AlarmManager alarms all expire if the device is rebooted and have to be re-set after afterwards when receiving
ACTION_BOOT_COMPLETED
or whatever other way might be appropriate.