From 45078f948766e426d5b1ab851a14a523a86f5fa4 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 27 Feb 2019 19:13:19 +0200 Subject: [PATCH] execute transaction loader task using the thread pool executor for maximum performance --- .../ui/transaction_list/TransactionListAdapter.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java index 32164cdc..45d63af4 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java @@ -21,9 +21,6 @@ import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.graphics.Typeface; import android.os.AsyncTask; -import androidx.annotation.NonNull; -import androidx.appcompat.widget.AppCompatTextView; -import androidx.recyclerview.widget.RecyclerView; import android.text.Spannable; import android.text.SpannableString; import android.text.style.StyleSpan; @@ -47,6 +44,10 @@ import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; +import androidx.annotation.NonNull; +import androidx.appcompat.widget.AppCompatTextView; +import androidx.recyclerview.widget.RecyclerView; + import static net.ktnx.mobileledger.utils.DimensionUtils.dp2px; public class TransactionListAdapter extends RecyclerView.Adapter { @@ -71,8 +72,9 @@ public class TransactionListAdapter extends RecyclerView.Adapter