Get ISPDB short name

This commit is contained in:
M66B 2018-12-30 15:50:22 +00:00
parent 0ef81bfe69
commit 31820ec363
1 changed files with 11 additions and 1 deletions

View File

@ -175,7 +175,17 @@ public class Provider {
while (eventType != XmlPullParser.END_DOCUMENT) { while (eventType != XmlPullParser.END_DOCUMENT) {
if (eventType == XmlPullParser.START_TAG) { if (eventType == XmlPullParser.START_TAG) {
String name = xml.getName(); String name = xml.getName();
if ("incomingServer".equals(name)) { if ("displayShortName".equals(name)) {
// <displayShortName>GMail</displayShortName>
eventType = xml.next();
if (eventType == XmlPullParser.TEXT) {
String display = xml.getText();
Log.i("Name=" + display);
provider.name = display;
}
continue;
} else if ("incomingServer".equals(name)) {
// <incomingServer type="imap"> // <incomingServer type="imap">
// <hostname>imap.gmail.com</hostname> // <hostname>imap.gmail.com</hostname>
// <port>993</port> // <port>993</port>