mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22:05 +01:00
Do not broadcast events for empty collections. SMACK-106
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@3033 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
e5ea043798
commit
254c4a450a
1 changed files with 9 additions and 3 deletions
|
@ -565,9 +565,15 @@ public class Roster {
|
|||
rosterListeners.toArray(listeners);
|
||||
}
|
||||
for (int i=0; i<listeners.length; i++) {
|
||||
listeners[i].entriesAdded(addedEntries);
|
||||
listeners[i].entriesUpdated(updatedEntries);
|
||||
listeners[i].entriesDeleted(deletedEntries);
|
||||
if (!addedEntries.isEmpty()) {
|
||||
listeners[i].entriesAdded(addedEntries);
|
||||
}
|
||||
if (!updatedEntries.isEmpty()) {
|
||||
listeners[i].entriesUpdated(updatedEntries);
|
||||
}
|
||||
if (!deletedEntries.isEmpty()) {
|
||||
listeners[i].entriesDeleted(deletedEntries);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue