Use connectivity change events before Android O

Many devices seems to weak to handle all network changes
This commit is contained in:
M66B 2017-08-08 11:53:27 +02:00
parent a86f281409
commit 3b217c09b9
1 changed files with 1 additions and 1 deletions

View File

@ -2196,7 +2196,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS
registerReceiver(packageChangedReceiver, ifPackage);
registeredPackageChanged = true;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
listenNetworkChanges();
else
listenConnectivityChanges();