Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Queue UI requests from page fragments while app in background

Open mikehardy opened this issue 2 years ago • 4 comments

          > As of now, note that this will create silent bugs. 

for that, there could be a enqueing for the webview reload request (which is what calls congratsInfo) to run when the lifecycle is at least onStart. If there is more than one request, ignore the older ones

Originally posted by @BrayanDSO in https://github.com/ankidroid/Anki-Android/issues/15690#issuecomment-1967596903

mikehardy avatar Feb 28 '24 16:02 mikehardy

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Aug 11 '24 17:08 github-actions[bot]

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Nov 27 '24 17:11 github-actions[bot]

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Mar 04 '25 18:03 github-actions[bot]

Hi! I'd like to work on this one, could I be assigned?

I looked at the current state first. Since this was filed, CongratsPage has gained the reload part of the proposal: a missedRefresh flag is set while the screen isn't STARTED, and on the next STARTED it gets consumed and collapsed into a single reload. So congratsInfopolling is covered.

The general case is still open. When the screen is backgrounded, PageFragment.handlePostRequest still runs UI requests against the stopped activity right away.

mixelas avatar Nov 04 '26 14:11 mixelas