mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-12 03:55:01 -05:00
bce2523f98
The current auto-reconnection implementation will only try reconnecting once, immediately after the server is disconnected. This will of course almost always fail if the network is down or otherwise unavailable, so as it stands, enabling auto-reconnect isn't particularly useful. This patch implements multiple retries for auto-reconnect, with the frequency of retries controlled by a preference. The Android alarm infrastructure is used to schedule reconnection attempts; if the phone misses a scheduled attempt while it's asleep, the reconnection will be attempted the next time the phone wakes up. |
||
---|---|---|
.. | ||
application.xml | ||
arrays.xml | ||
charsets.xml | ||
settings.xml | ||
strings.xml |