mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 01:51:24 +01:00
Suppress deprecation of traditional database transactions
This commit is contained in:
@@ -835,6 +835,24 @@ public abstract class DB extends RoomDatabase {
|
||||
.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void beginTransaction() {
|
||||
super.beginTransaction();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void setTransactionSuccessful() {
|
||||
super.setTransactionSuccessful();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
public void endTransaction() {
|
||||
super.endTransaction();
|
||||
}
|
||||
|
||||
public static class Converters {
|
||||
@TypeConverter
|
||||
public static String[] toStringArray(String value) {
|
||||
|
||||
Reference in New Issue
Block a user