- String filter = TransactionListFragment.accountFilter.get();
- AsyncTask<String, Void, List<LedgerTransaction>> task = new UTT();
- task.execute(filter);
- }
- public static LedgerTransaction getTransaction(int position) {
- List<LedgerTransaction> transactions = Data.transactions.get();
- if (position >= transactions.size()) return null;
- return transactions.get(position);
+ if (Data.profile.getValue() == null) return;
+
+ String filter = Data.accountFilter.getValue();
+ AsyncTask<String, Void, String> task = new UTT();
+ task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, filter);