change targetversion test #312

This commit is contained in:
afischerdev 2021-09-07 13:48:15 +02:00
parent 980b819782
commit b91653a1c8
2 changed files with 2 additions and 2 deletions

View file

@ -203,7 +203,7 @@ public class BRouterService extends Service
// add nogos from waypoint database
int deviceLevel = android.os.Build.VERSION.SDK_INT;
int targetSdkVersion = getApplicationInfo().targetSdkVersion;
boolean canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 10;
boolean canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 19;
AppLogger.log( "dev/target=" + deviceLevel + "/" + targetSdkVersion + " canAccessSdCard=" + canAccessSdCard );
if ( canAccessSdCard )
{

View file

@ -221,7 +221,7 @@ public class BRouterView extends View
int deviceLevel = android.os.Build.VERSION.SDK_INT;
int targetSdkVersion = getContext().getApplicationInfo().targetSdkVersion;
canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 10;
canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 19;
if ( canAccessSdCard )
{
cor = CoordinateReader.obtainValidReader( basedir, segmentDir );