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

ALTAPPS-890: Fix Android daily reminder #590

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

XanderZhu
Copy link
Contributor

YouTrack Issues:
#ALTAPPS-890

Checklist

Before Code Review:

  • Fields "Assignees, Labels, Milestone" are filled in the pull request;
  • All checks have been passed;
  • Changes have been checked locally.

Description
The root cause of this bug are race-conditions. The ProfileFragment send messages which should save the availability flag or reminder time in the settings, but these operations are asynchronous. So, DailyStudyReminderLocalNotificationDelegate access the data before they are updated via actionDispatcher.
I've removed the notificationInteractor access from DailyStudyReminderLocalNotificationDelegate in case of notification planning from the ProfileFragment.

@XanderZhu XanderZhu added bug Something isn't working android Android module task labels Jul 18, 2023
@XanderZhu XanderZhu added this to the 1.26 milestone Jul 18, 2023
@XanderZhu XanderZhu self-assigned this Jul 18, 2023
@XanderZhu XanderZhu marked this pull request as ready for review July 18, 2023 12:39
@XanderZhu XanderZhu merged commit a3f6979 into develop Jul 18, 2023
12 checks passed
@XanderZhu XanderZhu deleted the feature/ALTAPPS-890/Fix_daily_reminder branch July 18, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android module task bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants