X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Ftransaction_list%2FTransactionListAdapter.java;h=35e68e59d733fa5062fe702333b23f216448dd20;hb=08f302d24aa8324a9ea7c32734938069794398b8;hp=38d73fda4d88f6c5aa5b96777384bd52e715b478;hpb=b4b86c8b653c39382a30c2324796ee5b57cb81dd;p=mobile-ledger-staging.git 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 38d73fda..35e68e59 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 @@ -17,6 +17,7 @@ package net.ktnx.mobileledger.ui.transaction_list; +import android.app.Activity; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.graphics.Typeface; @@ -24,7 +25,6 @@ import android.os.AsyncTask; import android.text.Spannable; import android.text.SpannableString; import android.text.style.StyleSpan; -import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -32,7 +32,6 @@ import android.widget.LinearLayout; import android.widget.TextView; import androidx.annotation.NonNull; -import androidx.appcompat.widget.AppCompatTextView; import androidx.recyclerview.widget.RecyclerView; import net.ktnx.mobileledger.App; @@ -43,14 +42,13 @@ import net.ktnx.mobileledger.model.LedgerTransactionAccount; import net.ktnx.mobileledger.model.TransactionListItem; import net.ktnx.mobileledger.utils.Colors; import net.ktnx.mobileledger.utils.Globals; +import net.ktnx.mobileledger.utils.Misc; import java.text.DateFormat; import java.util.Date; import java.util.GregorianCalendar; import java.util.TimeZone; -import static net.ktnx.mobileledger.utils.DimensionUtils.dp2px; - public class TransactionListAdapter extends RecyclerView.Adapter { public void onBindViewHolder(@NonNull TransactionRowHolder holder, int position) { TransactionListItem item = TransactionListViewModel.getTransactionListItem(position); @@ -99,14 +97,12 @@ public class TransactionListAdapter extends RecyclerView.Adapter