In a case when you would call registerForConnectivityEvents twice for the same object, the library would register a new intent filter, but it wouldn't be added to the networkReceiversHashMap. This would result in a bug when the user unsubscribes. He would be unsubscribed from the first receiver, but not from the second.
This is a fix for duplicate subscription bug.
In a case when you would call
registerForConnectivityEvents
twice for the same object, the library would register a new intent filter, but it wouldn't be added to thenetworkReceiversHashMap
. This would result in a bug when the user unsubscribes. He would be unsubscribed from the first receiver, but not from the second.