/* No Change - continue */
if (oldStateUnread == currentStateUnread && oldStateNew == currentStateNew && oldStateSticky == newStateSticky)
continue;
synchronized (this) {
NewsCounterItem counter = getFromCounter(feedRef);
/* News became read */
if (oldStateUnread && !currentStateUnread)
counter.decrementUnreadCounter();
/* News became unread */
else if (!oldStateUnread && currentStateUnread)
counter.incrementUnreadCounter();
/* News no longer New */
if (oldStateNew && !currentStateNew)
counter.decrementNewCounter();
/* News became New */
else if (!oldStateNew && currentStateNew)
counter.incrementNewCounter();
/* News became unsticky */
if (oldStateSticky && !newStateSticky)
counter.decrementStickyCounter();
/* News became sticky */
else if (!oldStateSticky && newStateSticky)
counter.incrementStickyCounter();
}
}
}