change targetversion test #312
This commit is contained in:
parent
980b819782
commit
b91653a1c8
2 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue