Widget: fixed showing all unified messages instead of account messages

pull/172/head
M66B 5 years ago
parent f89597b936
commit b17180c3cd

@ -84,6 +84,12 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
try {
db.beginTransaction();
if (folder < 0 && account > 0) {
EntityFolder inbox = db.folder().getFolderByType(account, EntityFolder.INBOX);
if (inbox != null)
folder = inbox.id;
}
messages = db.message().getWidgetUnified(folder < 0 ? null : folder, threading, unseen, flagged);
db.setTransactionSuccessful();

Loading…
Cancel
Save