midhunhk / message-counter

A native Android App which tracks the number of Text messages sent in a cycle written in Kotlin
https://midhunhk.com/message-counter/
Apache License 2.0
21 stars 10 forks source link

Duplicate Message Counts #55

Closed midhunhk closed 6 years ago

midhunhk commented 6 years ago

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):

midhunhk commented 6 years ago

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

Fixes applied