Move to minimum API version 21 (lollypop)

It provides material design as long as new VPNService related APIs.
This commit is contained in:
emanuele-f 2021-01-26 17:47:18 +01:00
parent 3f09d4b925
commit 4bc4745b50
2 changed files with 1 additions and 4 deletions

View File

@ -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"

View File

@ -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) {