mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
Add some logs to ConnectivityManager.NetworkCallback
This commit is contained in:
@@ -131,11 +131,13 @@ public class BackgroundService extends Service {
|
||||
cm.registerNetworkCallback(networkRequestBuilder.build(), new ConnectivityManager.NetworkCallback() {
|
||||
@Override
|
||||
public void onAvailable(Network network) {
|
||||
Log.i("BackgroundService", "Valid network available");
|
||||
connectedToNonCellularNetwork.postValue(true);
|
||||
onNetworkChange(network);
|
||||
}
|
||||
@Override
|
||||
public void onLost(Network network) {
|
||||
Log.i("BackgroundService", "Valid network lost");
|
||||
connectedToNonCellularNetwork.postValue(false);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user