Merge pull request #334 from afischerdev/test-and11
change targetversion test #312
This commit is contained in:
commit
e303f34415
2 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue