mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
Added remove method for private data provider
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3929 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
3e1056efe9
commit
ed0f4a8a65
1 changed files with 12 additions and 2 deletions
|
@ -102,6 +102,17 @@ public class PrivateDataManager {
|
|||
privateDataProviders.put(key, provider);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a private data provider with the specified element name and namespace.
|
||||
*
|
||||
* @param elementName The XML element name.
|
||||
* @param namespace The XML namespace.
|
||||
*/
|
||||
public static void removePrivateDataProvider(String elementName, String namespace) {
|
||||
String key = getProviderKey(elementName, namespace);
|
||||
privateDataProviders.remove(key);
|
||||
}
|
||||
|
||||
|
||||
private XMPPConnection connection;
|
||||
|
||||
|
@ -312,8 +323,7 @@ public class PrivateDataManager {
|
|||
}
|
||||
}
|
||||
}
|
||||
IQ result = new PrivateDataResult(privateData);
|
||||
return result;
|
||||
return new PrivateDataResult(privateData);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue