public boolean removeSubscribeListener ( SubscribeListener subscribeListener ) { boolean removed = subscribeListeners . remove ( subscribeListener ) ; if ( removed && subscribeListeners . isEmpty ( ) ) { setSubscriptionMode ( previousSubscriptionMode ) ; } return removed ; }
Remove a subscribe listener . Also restores the previous subscription mode state if the last listener got removed .