mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-11 20:15:03 -05:00
Made the whole AutoconfigInfo class parcelable so it can be passed through the use of intents. This required a very minor change in the parser class.
This commit is contained in:
parent
5cf723b6a1
commit
c8f14ecfe4
@ -214,7 +214,14 @@ public class ConfigurationXMLHandler extends DefaultHandler {
|
||||
public void startDocument() throws SAXException { mAutoconfigInfo = new AutoconfigInfo();}
|
||||
|
||||
@Override
|
||||
public void endDocument() throws SAXException { }
|
||||
public void endDocument() throws SAXException {
|
||||
/*
|
||||
Adding some checks here too to see if we have useable data
|
||||
TODO: add more
|
||||
*/
|
||||
if( !(mAutoconfigInfo.outgoingServer.size() > 0 || mAutoconfigInfo.incomingServer.size() > 0))
|
||||
throw new SAXException("Unusable server data, not at least one incoming and outgoing server found.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void endElement(String uri, String localName, String qName) throws SAXException {
|
||||
|
Loading…
Reference in New Issue
Block a user