mirror of https://github.com/M66B/FairEmail.git
Get ISPDB short name
This commit is contained in:
parent
0ef81bfe69
commit
31820ec363
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue