Merge branch '2.12-release'

This commit is contained in:
Josephine Lim 2020-01-22 22:57:02 +10:00
commit 095d047370
3 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,8 @@
# Wikimedia Commons for Android
## v2.12.2
- Fixed crash on startup (hopefully, could not reproduce it)
## v2.12.1
- Fixed issue with Nearby loading in wrong location
- Various crash fixes

View file

@ -110,8 +110,8 @@ android {
defaultConfig {
applicationId 'fr.free.nrw.commons'
versionCode 542
versionName '2.12.1'
versionCode 549
versionName '2.12.2'
setProperty("archivesBaseName", "app-commons-v$versionName-" + getBranchName())
minSdkVersion 19

View file

@ -4,6 +4,7 @@ import android.content.ContentProviderClient;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.os.RemoteException;
import androidx.annotation.NonNull;
@ -264,7 +265,13 @@ public class BookmarkLocationsDao {
}
if (from == 10 && to == 11) {
from++;
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
//This is safe, and can be called clean, as we/I do not remember the appropriate version for this
//We are anyways switching to room, these things won't be nescessary then
try {
db.execSQL("ALTER TABLE bookmarksLocations ADD COLUMN location_pic STRING;");
}catch (SQLiteException exception){
Timber.e(exception);//
}
return;
}
}