mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Fixed parsing of providers file.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1931 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
37b7268abf
commit
154399440a
1 changed files with 6 additions and 2 deletions
|
@ -154,13 +154,15 @@ public class ProviderManager {
|
||||||
do {
|
do {
|
||||||
if (eventType == XmlPullParser.START_TAG) {
|
if (eventType == XmlPullParser.START_TAG) {
|
||||||
if (parser.getName().equals("iqProvider")) {
|
if (parser.getName().equals("iqProvider")) {
|
||||||
|
parser.next();
|
||||||
parser.next();
|
parser.next();
|
||||||
String elementName = parser.nextText();
|
String elementName = parser.nextText();
|
||||||
parser.next();
|
parser.next();
|
||||||
|
parser.next();
|
||||||
String namespace = parser.nextText();
|
String namespace = parser.nextText();
|
||||||
parser.next();
|
parser.next();
|
||||||
String className = parser.nextText();
|
|
||||||
parser.next();
|
parser.next();
|
||||||
|
String className = parser.nextText();
|
||||||
// Only add the provider for the namespace if one isn't
|
// Only add the provider for the namespace if one isn't
|
||||||
// already registered.
|
// already registered.
|
||||||
String key = getProviderKey(elementName, namespace);
|
String key = getProviderKey(elementName, namespace);
|
||||||
|
@ -185,13 +187,15 @@ public class ProviderManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (parser.getName().equals("extensionProvider")) {
|
else if (parser.getName().equals("extensionProvider")) {
|
||||||
|
parser.next();
|
||||||
parser.next();
|
parser.next();
|
||||||
String elementName = parser.nextText();
|
String elementName = parser.nextText();
|
||||||
parser.next();
|
parser.next();
|
||||||
|
parser.next();
|
||||||
String namespace = parser.nextText();
|
String namespace = parser.nextText();
|
||||||
parser.next();
|
parser.next();
|
||||||
String className = parser.nextText();
|
|
||||||
parser.next();
|
parser.next();
|
||||||
|
String className = parser.nextText();
|
||||||
// Only add the provider for the namespace if one isn't
|
// Only add the provider for the namespace if one isn't
|
||||||
// already registered.
|
// already registered.
|
||||||
String key = getProviderKey(elementName, namespace);
|
String key = getProviderKey(elementName, namespace);
|
||||||
|
|
Loading…
Reference in a new issue