Skip to content

Commit

Permalink
Merge pull request #79 from ngageoint/databaseCheck
Browse files Browse the repository at this point in the history
Handler for invalid db
  • Loading branch information
jclark118 committed Jan 10, 2024
2 parents 812f2e2 + 15c2949 commit 06b39c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapcache/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion 28
targetSdkVersion 34
versionCode 60
versionCode 61
versionName '2.1.11'
multiDexEnabled true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public List<List<GeoPackageTable>> regenerateTableList() {

// Delete any databases with invalid headers
if (!manager.validateHeader(database) ||
database.equalsIgnoreCase("ue3.db")) {
database.equalsIgnoreCase(context.getString(R.string.invalidDb))) {
cache.removeAndClose(database);
if (manager.delete(database)) {
databasesIterator.remove();
Expand Down
2 changes: 2 additions & 0 deletions mapcache/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@
<string name="min_lat">Min Lat</string>
<string name="add_url">Add URL</string>
<string name="copy_notice">MapCache will make a copy of this GeoPackage and save it internally</string>
<string name="invalidDb">ue3.db</string>



</resources>

0 comments on commit 06b39c8

Please sign in to comment.