Merge remote-tracking branch 'origin/dev' into release/1.20.7

pull/1706/head
SessionHero01 5 months ago
commit bf107bfead
No known key found for this signature in database

@ -327,7 +327,7 @@ dependencies {
implementation 'com.annimon:stream:1.1.8'
implementation 'com.github.dmytrodanylyk.circular-progress-button:library:1.1.3-S2'
implementation 'androidx.sqlite:sqlite-ktx:2.3.1'
implementation 'net.zetetic:sqlcipher-android:4.5.4@aar'
implementation 'net.zetetic:sqlcipher-android:4.6.1@aar'
implementation project(":libsignal")
implementation project(":libsession")
implementation project(":libsession-util")

@ -668,7 +668,7 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
}
private static boolean columnExists(@NonNull SQLiteDatabase db, @NonNull String table, @NonNull String column) {
try (Cursor cursor = db.rawQuery("PRAGMA table_info(" + table + ")", null)) {
try (Cursor cursor = db.rawQuery("PRAGMA table_xinfo(" + table + ")", null)) {
int nameColumnIndex = cursor.getColumnIndexOrThrow("name");
while (cursor.moveToNext()) {

Loading…
Cancel
Save