peter-tackage / open-secret-santa

Open Secret Santa for Android source code
Apache License 2.0
2 stars 2 forks source link

Safeguard against multiple draws or notify calls occuring simultaneously #42

Open peter-tackage opened 10 years ago

peter-tackage commented 10 years ago

This is only prevented by the UI not delivering multiple callbacks. Given the importance to data integrity, I should employ some semaphore mechanism to enforce serial execution.

peter-tackage commented 10 years ago

It may be better to consider moving these (particularly notification) to a started, bindable Service. This should be relatively simple given the use of RxJava to manage concurrency. This is also relevant for #37 (when supporting changing configuration/orientation)