Workaround for ROOM bug

pull/182/head
M66B 5 years ago
parent 8379b3b6cd
commit 6190446153

@ -240,7 +240,8 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
criteria.with_hidden, criteria.with_hidden,
criteria.with_encrypted, criteria.with_encrypted,
criteria.with_attachments, criteria.with_attachments,
criteria.with_types, criteria.with_types == null ? 0 : criteria.with_types.length,
criteria.with_types == null ? new String[]{} : criteria.with_types,
criteria.with_size, criteria.with_size,
criteria.after, criteria.after,
criteria.before, criteria.before,

@ -321,7 +321,7 @@ public interface DaoMessage {
" AND (NOT :hidden OR NOT ui_snoozed IS NULL)" + " AND (NOT :hidden OR NOT ui_snoozed IS NULL)" +
" AND (NOT :encrypted OR ui_encrypt > 0)" + " AND (NOT :encrypted OR ui_encrypt > 0)" +
" AND (NOT :attachments OR attachments > 0)" + " AND (NOT :attachments OR attachments > 0)" +
" AND (:types IS NULL OR attachment.type IN (:types))" + " AND (:type_count = 0 OR attachment.type IN (:types))" +
" AND (:size IS NULL OR total > :size)" + " AND (:size IS NULL OR total > :size)" +
" AND (:after IS NULL OR received > :after)" + " AND (:after IS NULL OR received > :after)" +
" AND (:before IS NULL OR received < :before)" + " AND (:before IS NULL OR received < :before)" +
@ -331,7 +331,7 @@ public interface DaoMessage {
Long account, Long folder, String find, Long account, Long folder, String find,
boolean senders, boolean recipients, boolean subject, boolean keywords, boolean message, boolean senders, boolean recipients, boolean subject, boolean keywords, boolean message,
boolean unseen, boolean flagged, boolean hidden, boolean encrypted, boolean attachments, boolean unseen, boolean flagged, boolean hidden, boolean encrypted, boolean attachments,
String[] types, int type_count, String[] types,
Integer size, Integer size,
Long after, Long before, Long after, Long before,
int limit, int offset); int limit, int offset);

Loading…
Cancel
Save