Skip to content

Commit 762f507

Browse files
committed
update daemon libs
1 parent 2fb018f commit 762f507

File tree

202 files changed

+992
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+992
-7
lines changed

app/src/main/java/io/scalaproject/vault/layout/TransactionInfoAdapter.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
package io.scalaproject.vault.layout;
2323

2424
import android.content.Context;
25+
26+
import androidx.annotation.NonNull;
2527
import androidx.core.content.ContextCompat;
2628

2729
import androidx.recyclerview.widget.DiffUtil;
@@ -54,14 +56,12 @@
5456
import timber.log.Timber;
5557

5658
public class TransactionInfoAdapter extends RecyclerView.Adapter<TransactionInfoAdapter.ViewHolder> {
57-
58-
private final static int MAX_CONFIRMATIONS = 10;
5959
private final static SimpleDateFormat DATETIME_FORMATTER = new SimpleDateFormat("yyyy-MM-dd HH:mm");
6060

61-
private int outboundColour;
62-
private int inboundColour;
63-
private int pendingColour;
64-
private int failedColour;
61+
private final int outboundColour;
62+
private final int inboundColour;
63+
private final int pendingColour;
64+
private final int failedColour;
6565

6666
public interface OnInteractionListener {
6767
void onInteraction(View view, TransactionInfo item);
@@ -75,7 +75,7 @@ public interface OnFindContactListener {
7575
private final OnInteractionListener onInteractionListener;
7676
private final OnFindContactListener onFindContactListener;
7777

78-
private Context context;
78+
private final Context context;
7979

8080
public TransactionInfoAdapter(Context context, OnInteractionListener onInteractionListener,
8181
OnFindContactListener onFindContactListener) {
@@ -99,6 +99,7 @@ public boolean needsTransactionUpdateOnNewBlock() {
9999
return (infoItems.size() > 0) && !infoItems.get(0).isConfirmed();
100100
}
101101

102+
@NonNull
102103
@Override
103104
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
104105
View view = LayoutInflater.from(parent.getContext())
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
194 KB
Binary file not shown.
114 KB
Binary file not shown.
266 KB
Binary file not shown.
1.49 MB
Binary file not shown.
1.46 MB
Binary file not shown.
1.81 MB
Binary file not shown.
1.04 MB
Binary file not shown.

0 commit comments

Comments
 (0)