From 784dee8259fc3b073e5854fb538d19896803b852 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 25 Apr 2020 22:57:46 +0300 Subject: [PATCH] @NotNull annotation may help something somewhere --- .../mobileledger/ui/activity/NewTransactionItemHolder.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java index 77ce69a0..3a757607 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java @@ -53,6 +53,8 @@ import net.ktnx.mobileledger.utils.Logger; import net.ktnx.mobileledger.utils.MLDB; import net.ktnx.mobileledger.utils.Misc; +import org.jetbrains.annotations.NotNull; + import java.text.DecimalFormatSymbols; import java.util.Calendar; import java.util.Date; @@ -430,7 +432,7 @@ class NewTransactionItemHolder extends RecyclerView.ViewHolder tvAccount.setEnabled(editable); tvAmount.setEnabled(editable); } - private void setCommentVisible(Boolean visible) { + private void setCommentVisible(@NotNull Boolean visible) { if (visible) { // showing; show the comment view and align the comment button to it tvComment.setVisibility(View.VISIBLE); -- 2.39.5