]> hydra-www.ietfng.org Git - acmetensortoys-ctfws-android/commit
Robustify message display
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 27 Oct 2018 03:48:12 +0000 (04:48 +0100)
committerNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 27 Oct 2018 14:11:49 +0000 (15:11 +0100)
commit48588cf9293fe311f37e02954887ba170af6c759
tree066e8b4db5c8e5262757b45c01d9a38e9195d255
parent1974c9f039cf0c1ff81f62afe5fa4e5271c3ea3c
Robustify message display

Adjust the behavior of the GameStateManager; it's not quite what it
should be, but it's less bad than what was there before.  Notably, Msg
objects now have the right .equals() behavior, not just .compareTo()

Improve CtFwSDisplayLocal and stay subscribed to game state changes
while not visible so we stay informed of messages.  Do not, however,
stay subscribed to service state messages, as there is no point.

We might lose messages all the same, but hopefully fewer and hopefully
without duplicates spamming everyone all the time.

While here, more correctly (I think?) use the Android lifecycle events.
lib/src/main/java/com/acmetensortoys/ctfwstimer/lib/CtFwSGameStateManager.java
mobile/src/main/java/com/acmetensortoys/ctfwstimer/CtFwSDisplayLocal.java
mobile/src/main/java/com/acmetensortoys/ctfwstimer/MainActivity.java