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

Duplicate Message Counts #55

Closed
midhunhk opened this issue Sep 14, 2018 · 1 comment
Closed

Duplicate Message Counts #55

midhunhk opened this issue Sep 14, 2018 · 1 comment
Assignees
Labels
bug A Code Issue fixed will be closed when merged with master

Comments

@midhunhk
Copy link
Owner

Sometimes, when opening the app after a message is sent, the count is not updated on app launch, but on relaunch the sent message count is doubled.

To Reproduce
Steps to reproduce the behavior:

  1. Send one or more messages
  2. Start the app via Widget or from Launcher
  3. If the sent count is displayed as 0 or unchanged, this issue may occur
  4. Click on Counter button or exit and launch app again
  5. Double the unindexed message count is displayed

Expected behavior
There should not be duplicate counts.

Smartphone (please complete the following information):

  • Device: Samsung Galaxy S9
  • OS: Android 8.0
  • Application Version 4.0.0
@midhunhk midhunhk added the bug A Code Issue label Sep 14, 2018
@midhunhk midhunhk self-assigned this Sep 14, 2018
@midhunhk midhunhk added the in progress Working on it label Sep 14, 2018
@midhunhk
Copy link
Owner Author

Multiple index message tasks may have been initiated could cause this issue.

Fixes applied

  • Store an Index In Progress flag in Shared Preferences so that multiple indexes are not initiated
  • Declare activity as singleInstance, so same Activity is reused when opening app from Launcher or Widget

@midhunhk midhunhk added fixed will be closed when merged with master and removed in progress Working on it labels Sep 18, 2018
@midhunhk midhunhk mentioned this issue Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A Code Issue fixed will be closed when merged with master
Projects
None yet
Development

No branches or pull requests

1 participant