Merge pull request #334 from afischerdev/test-and11

change targetversion test #312
This commit is contained in:
afischerdev 2021-09-07 13:49:40 +02:00 committed by GitHub
commit e303f34415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 // add nogos from waypoint database
int deviceLevel = android.os.Build.VERSION.SDK_INT; int deviceLevel = android.os.Build.VERSION.SDK_INT;
int targetSdkVersion = getApplicationInfo().targetSdkVersion; int targetSdkVersion = getApplicationInfo().targetSdkVersion;
boolean canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 10; boolean canAccessSdCard = deviceLevel < 23 || targetSdkVersion == 19;
AppLogger.log( "dev/target=" + deviceLevel + "/" + targetSdkVersion + " canAccessSdCard=" + canAccessSdCard ); AppLogger.log( "dev/target=" + deviceLevel + "/" + targetSdkVersion + " canAccessSdCard=" + canAccessSdCard );
if ( canAccessSdCard ) if ( canAccessSdCard )
{ {

View file

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