1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-08 12:18:07 -05:00
Yaaic/application
Steven Luo e7651315df Make reconnections actually work
At the moment, the reconnect feature is somewhat glitchy, popping up
multiple reconnect prompts even if a reconnection succeeds, and
occasionally causing crashes.  A successful reconnection results in the
conversation history being cleared, which is an annoying outcome when
connected over an unreliable network.

This patch does the following:

* Keep track of whether a reconnect dialog is active, to prevent
  multiple dialogs from opening.
* Introduce a new field to the Server object, mayReconnect, which is
  used to keep track of whether a reconnection should be attempted in
  the event of a disconnection.  It's set to "true" when we connect to a
  server, and "false" if the user asks for a disconnection.
* Prevent the clearing of active conversations and conversation history
  on disconnect, unless the user specifically asked for the disconnect.
* Keep the IRCService running even when no servers are connected, unless
  the user has disconnected from all servers herself.  This is needed
  for reliable auto-reconnects (see next patch), but has the side effect
  of keeping conversation history around even if the activity isn't open
  when a disconnect happens.
2011-06-29 20:34:52 +02:00
..
.settings Adjusted code formatter (eclipse) 2011-01-15 23:49:25 +01:00
res French translation updated 2011-06-11 13:58:33 +02:00
src/org Make reconnections actually work 2011-06-29 20:34:52 +02:00
.classpath Remove tagsoup dependency. Improve mIRC color code parsing speed. 2011-03-27 19:42:05 +02:00
.project Merged application and test project into one repository 2010-11-07 08:35:45 +01:00
AndroidManifest.xml (Authentication) GUI for NickServ and SASL 2011-06-10 21:35:23 +02:00
build.properties Merged application and test project into one repository 2010-11-07 08:35:45 +01:00
build.xml Merged application and test project into one repository 2010-11-07 08:35:45 +01:00
default.properties Target and minimum SDK Version set to 4 (Android 1.6) 2011-02-19 21:09:44 +01:00