bitkit
bitkit copied to clipboard
[Bug]: Refresh Failed toast often seen when reopening app from minimised
Describe the bug
When I reopen the app from minimised state I often see 'Refresh Failed' 'An error occurred and couldn't refresh the wallet. Please try again.' toast message. A manual refresh will work and there appears to be no connection issue. We should only show this toast when there is a legitimate problem.
Reproduce
- Close Bitkit to minimised state
- Wait a short while (2-5 minutes)
- Reopen Bitkit from minimsed state
- Observe 'Refresh Failed' error toast
- Perform manual refresh and confirm there is no problem with refreshing
Screenshots / Recording
https://github.com/synonymdev/bitkit/assets/74595920/1ddaad0b-cd00-4a93-a4ba-6ce4a2a319e9
Operating system
Android 13 TKQ1.221114.001
Bitkit version
8908053a3198a167c16a3062fb68282160a63112
Log output
No response