Skip to content

Commit 095d047

Browse files
committed
Merge branch '2.12-release'
2 parents ef9e298 + f7adbf7 commit 095d047

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Wikimedia Commons for Android
22

3+
## v2.12.2
4+
- Fixed crash on startup (hopefully, could not reproduce it)
5+
36
## v2.12.1
47
- Fixed issue with Nearby loading in wrong location
58
- Various crash fixes

app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ android {
110110

111111
defaultConfig {
112112
applicationId 'fr.free.nrw.commons'
113-
versionCode 542
114-
versionName '2.12.1'
113+
versionCode 549
114+
versionName '2.12.2'
115115
setProperty("archivesBaseName", "app-commons-v$versionName-" + getBranchName())
116116

117117
minSdkVersion 19

app/src/main/java/fr/free/nrw/commons/bookmarks/locations/BookmarkLocationsDao.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.content.ContentValues;
55
import android.database.Cursor;
66
import android.database.sqlite.SQLiteDatabase;
7+
import android.database.sqlite.SQLiteException;
78
import android.os.RemoteException;
89

910
import androidx.annotation.NonNull;
@@ -264,7 +265,13 @@ public static void onUpdate(SQLiteDatabase db, int from, int to) {
264265
}
265266
if (from == 10 && to == 11) {
266267
from++;
267-
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
268+
//This is safe, and can be called clean, as we/I do not remember the appropriate version for this
269+
//We are anyways switching to room, these things won't be nescessary then
270+
try {
271+
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
272+
}catch (SQLiteException exception){
273+
Timber.e(exception);//
274+
}
268275
return;
269276
}
270277
}

0 commit comments

Comments
 (0)