mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Refactored invitation code to allow the UI to save & restore its state.
Android UI elements can be destroyed and recreated at any time, and they can only store serialisable state, so references to long-running tasks have to take the form of serialisable handles. This is pretty ugly - it's easy to create memory leaks if you don't clean up stale handle/reference mappings - but it's less ugly than the common solution of using static variables to hold references.
This commit is contained in: