Skip to content
Snippets Groups Projects
Forked from briar / briar
6908 commits behind the upstream repository.
  • akwizgran's avatar
    52989770
    Refactored invitation code to allow the UI to save & restore its state. · 52989770
    akwizgran authored
    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.
    52989770
    History
    Refactored invitation code to allow the UI to save & restore its state.
    akwizgran authored
    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.
lint.xml 106 B