In case connection is lost the login screen is showed again. If user press cancel it turns back to the main roster. The cancel action has to be : cancel the login and let user to login again manually, exactly like it works in gtalk.
This is rather tricky - PsiAccount class is not meant to be able to change accounts (it was supposed to be one instance per account), so to achieve that, we opened a Pandora's box of consequences.
Cancelling the reconnection doesn't work for some reason, I'll try to see why again.
But if I don't succeed, consider the following /solutions/
1) Try to return the previous behaviour - not to return the login screen on connection error
2) Remove the cancel button
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Still the same problem :
-1 "XML Parsing Error"
Seems that is is a "timeout" problem while retriving the social data or roster data since after it tries again 2 or 3 times it works.
It also seems to work better than before (less connection errors"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is rather tricky - PsiAccount class is not meant to be able to change accounts (it was supposed to be one instance per account), so to achieve that, we opened a Pandora's box of consequences.
Cancelling the reconnection doesn't work for some reason, I'll try to see why again.
But if I don't succeed, consider the following /solutions/
1) Try to return the previous behaviour - not to return the login screen on connection error
2) Remove the cancel button
Let's follow n. 1) : in case of connection error do not return to login screen
Can you test and see what goes in the output after (in the following line)
YaLoginPage::disconnected
it should be a number and a string.
I'm not getting a connection error even when I unplug the network cable...
When I get disconnected at login time I get :
-1 "XML Parsing Error"
I was hoping that -1 will be something else.
I'll put filtering on the status text, so if there is another string you get when connection is lost, just post it here.
Have you updated the code ? I'm still getting the same result
Can you test again? I went for whitelisting - only show the login page if there is no error (err string empty)
Still the same problem :
-1 "XML Parsing Error"
Seems that is is a "timeout" problem while retriving the social data or roster data since after it tries again 2 or 3 times it works.
It also seems to work better than before (less connection errors"
And it still returns to the login window in that case?
No it just shows a partial contact list
hopefully it now works as expected
Works great now