-public class TransactionListViewModel extends ViewModel {
-
- private ArrayList<LedgerTransaction> transactions;
-
- public void reloadTransactions(TransactionListFragment context) {
- ArrayList<LedgerTransaction> newList = new ArrayList<>();
-
- Activity act = context.getActivity();
-
- boolean hasFilter =
- act.findViewById(R.id.transaction_list_account_name_filter).getVisibility() ==
- View.VISIBLE;
-
- String sql;
- String[] params;
-
- sql = "SELECT id FROM transactions ORDER BY date desc, id desc";
- params = null;