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:
akwizgran
2012-11-15 00:45:32 +00:00
parent 3e8c6081ef
commit 5298977015
20 changed files with 510 additions and 232 deletions

4
lint.xml Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="UseSparseArrays" severity="ignore" />
</lint>