Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom data plan doesn't refresh after expiration #227

Open
4 tasks done
buttercookie42 opened this issue Jan 5, 2024 · 0 comments
Open
4 tasks done

Custom data plan doesn't refresh after expiration #227

buttercookie42 opened this issue Jan 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@buttercookie42
Copy link
Contributor

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed.
  • 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.
  • This issue contains only one bug.

Affected app version

v2.4.0

Steps to reproduce the bug

  1. Create a custom data plan and set it to automatically refresh.
  2. Reboot your phone at least once.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants