Implement blur-hash based low resolution thumbnail previews.

This commit is contained in:
alex-signal
2019-10-17 09:26:08 -03:00
committed by Greyson Parrelli
parent 9e3475ed94
commit 9432a45b39
45 changed files with 817 additions and 86 deletions

View File

@@ -84,8 +84,9 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
private static final int MMS_RECIPIENT_CLEANUP = 27;
private static final int ATTACHMENT_HASHING = 28;
private static final int NOTIFICATION_RECIPIENT_IDS = 29;
private static final int BLUR_HASH = 30;
private static final int DATABASE_VERSION = 29;
private static final int DATABASE_VERSION = 30;
private static final String DATABASE_NAME = "signal.db";
private final Context context;
@@ -584,6 +585,10 @@ public class SQLCipherOpenHelper extends SQLiteOpenHelper {
}
}
if (oldVersion < BLUR_HASH) {
db.execSQL("ALTER TABLE part ADD COLUMN blur_hash TEXT DEFAULT NULL");
}
db.setTransactionSuccessful();
} finally {
db.endTransaction();