import net.ktnx.mobileledger.model.TransactionListItem;
import net.ktnx.mobileledger.utils.ObservableValue;
-import java.util.List;
-
import androidx.lifecycle.ViewModel;
public class TransactionListViewModel extends ViewModel {
return Data.transactions.get(position);
}
}
- public static int getTransactionCount() {
- List<TransactionListItem> transactions = Data.transactions.get();
- if (transactions == null) return 0;
- return transactions.size();
- }
private static class UTT extends UpdateTransactionsTask {
@Override
protected void onPostExecute(String error) {