mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-06-16 21:10:57 +08:00
Move to minimum API version 21 (lollypop)
It provides material design as long as new VPNService related APIs.
This commit is contained in:
parent
3f09d4b925
commit
4bc4745b50
@ -5,7 +5,7 @@ android {
|
||||
buildToolsVersion "29.0.3"
|
||||
defaultConfig {
|
||||
applicationId "com.emanuelef.remote_capture"
|
||||
minSdkVersion 19
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 14
|
||||
versionName "1.2.11"
|
||||
|
||||
@ -232,9 +232,6 @@ public class Utils {
|
||||
}
|
||||
|
||||
static boolean hasVPNRunning(Context context) {
|
||||
if (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.LOLLIPOP)
|
||||
return false;
|
||||
|
||||
ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
|
||||
|
||||
if(cm != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user