mirror of
https://github.com/M66B/NetGuard.git
synced 2025-02-22 14:21:01 +00:00
Added comments
This commit is contained in:
parent
70dd1929a5
commit
dcdbe2e7fd
1 changed files with 4 additions and 1 deletions
|
@ -264,14 +264,17 @@ public class SinkholeService extends VpnService {
|
|||
Util.logExtras(TAG, intent);
|
||||
|
||||
if (last_roaming != Util.isRoaming(SinkholeService.this)) {
|
||||
// Roaming state changed
|
||||
last_roaming = !last_roaming;
|
||||
Log.i(TAG, "New state roaming=" + last_roaming);
|
||||
reload(null, SinkholeService.this);
|
||||
|
||||
} else if (intent.hasExtra(ConnectivityManager.EXTRA_NETWORK_TYPE) &&
|
||||
intent.getIntExtra(ConnectivityManager.EXTRA_NETWORK_TYPE, ConnectivityManager.TYPE_DUMMY) ==
|
||||
ConnectivityManager.TYPE_WIFI)
|
||||
ConnectivityManager.TYPE_WIFI) {
|
||||
// Wifi connected/disconnected
|
||||
reload(null, SinkholeService.this);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue