Fix crash that occurs during thread trims by date.

main
Greyson Parrelli 2023-01-05 14:52:51 -05:00
rodzic 73e46053f0
commit 0a40432ed4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -3840,7 +3840,7 @@ public class MessageTable extends DatabaseTable implements MessageTypes, Recipie
String order = MessageTable.DATE_RECEIVED + " ASC";
String selection = MessageTable.DATE_RECEIVED + " > " + date;
try (Cursor cursor = getReadableDatabase().query(TABLE_NAME, projection, selection, null, null, order, "1")) {
try (Cursor cursor = getReadableDatabase().query(TABLE_NAME, projection, selection, null, null, null, order, "1")) {
if (cursor != null && cursor.moveToFirst()) {
return cursor.getLong(0);
}