mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-14 05:25:07 -05:00
Changed the parsing to use the new class names. Cleaned up the imports.
This commit is contained in:
parent
815d162b3e
commit
bcd7735324
@ -8,28 +8,20 @@ import android.os.*;
|
|||||||
import android.os.Process;
|
import android.os.Process;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import com.fsck.k9.K9;
|
import com.fsck.k9.K9;
|
||||||
import com.fsck.k9.R;
|
import com.fsck.k9.R;
|
||||||
import com.fsck.k9.activity.K9Activity;
|
import com.fsck.k9.activity.K9Activity;
|
||||||
import com.fsck.k9.activity.setup.configxmlparser.XMLDescriptionHandler;
|
import com.fsck.k9.activity.setup.configxmlparser.ConfigurationXMLHandler;
|
||||||
import com.fsck.k9.mail.store.TrustManagerFactory;
|
import com.fsck.k9.mail.store.TrustManagerFactory;
|
||||||
import org.xml.sax.SAXException;
|
import org.xml.sax.SAXException;
|
||||||
import org.xml.sax.XMLReader;
|
import org.xml.sax.XMLReader;
|
||||||
|
|
||||||
import javax.net.ssl.HttpsURLConnection;
|
|
||||||
import javax.net.ssl.SSLContext;
|
|
||||||
import javax.net.ssl.SSLPeerUnverifiedException;
|
import javax.net.ssl.SSLPeerUnverifiedException;
|
||||||
import javax.net.ssl.TrustManager;
|
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
import javax.xml.parsers.SAXParser;
|
|
||||||
import javax.xml.parsers.SAXParserFactory;
|
import javax.xml.parsers.SAXParserFactory;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
import java.security.KeyManagementException;
|
|
||||||
import java.security.NoSuchAlgorithmException;
|
|
||||||
import java.security.SecureRandom;
|
|
||||||
import java.security.cert.CertificateException;
|
import java.security.cert.CertificateException;
|
||||||
import java.security.cert.X509Certificate;
|
import java.security.cert.X509Certificate;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@ -206,7 +198,7 @@ public class AccountSetupAutoConfiguration extends K9Activity implements View.On
|
|||||||
private void parse(String data) {
|
private void parse(String data) {
|
||||||
try{
|
try{
|
||||||
XMLReader xr = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
|
XMLReader xr = SAXParserFactory.newInstance().newSAXParser().getXMLReader();
|
||||||
xr.setContentHandler(new XMLDescriptionHandler());
|
xr.setContentHandler(new ConfigurationXMLHandler());
|
||||||
//xr.parse(data);
|
//xr.parse(data);
|
||||||
|
|
||||||
// TODO: take care of these
|
// TODO: take care of these
|
||||||
|
Loading…
Reference in New Issue
Block a user