From 31820ec363798810f379bf10601b7f52f34e7cff Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 30 Dec 2018 15:50:22 +0000 Subject: [PATCH] Get ISPDB short name --- app/src/main/java/eu/faircode/email/Provider.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Provider.java b/app/src/main/java/eu/faircode/email/Provider.java index a0ff1b915a..603650e175 100644 --- a/app/src/main/java/eu/faircode/email/Provider.java +++ b/app/src/main/java/eu/faircode/email/Provider.java @@ -175,7 +175,17 @@ public class Provider { while (eventType != XmlPullParser.END_DOCUMENT) { if (eventType == XmlPullParser.START_TAG) { String name = xml.getName(); - if ("incomingServer".equals(name)) { + if ("displayShortName".equals(name)) { + // GMail + eventType = xml.next(); + if (eventType == XmlPullParser.TEXT) { + String display = xml.getText(); + Log.i("Name=" + display); + provider.name = display; + } + continue; + + } else if ("incomingServer".equals(name)) { // // imap.gmail.com // 993