String msg = newStatus ? "You will now receive emails for new activities to this stream"
: "You will no longer receive emails for new activities to this stream";
eventBus.notifyObservers(new ShowNotificationEvent(new Notification(msg)));
}
});
eventBus.addObserver(GotStreamActivitySubscriptionResponseEvent.class,
new Observer<GotStreamActivitySubscriptionResponseEvent>()
{
public void update(final GotStreamActivitySubscriptionResponseEvent result)
{
setSubscribeStatus(result.isSubscribed());