Consolidate network listeners
- Do not listen for network changes both from
PairingFragment
andBackgroundService
, sincePairingFragment
already receives a callback fromBackgroundService
. - Remove usage of deprecated WiFi
ConnectivityManager
inPairingFragment
, instead we can pass the connection info we want via the callback. Also fixes a NPE case. - Only listen for non-cellular network changes (where we can actually discover devices), saving battery.
Edited by Albert Vaca Cintora