Added account type to account selector

This commit is contained in:
M66B
2022-03-25 11:04:57 +01:00
parent b03ed1afdf
commit 44ed7a8558

View File

@@ -83,11 +83,12 @@ public class FragmentDialogSelectAccount extends FragmentDialogBase {
@Override
protected List<EntityAccount> onExecute(Context context, Bundle args) {
boolean all = (args != null && args.getBoolean("all"));
Integer type = (args == null || !args.containsKey("type") ? null : args.getInt("type"));
DB db = DB.getInstance(context);
return (all
? db.account().getAccounts()
: db.account().getSynchronizingAccounts(null));
: db.account().getSynchronizingAccounts(type));
}
@Override