]> git.ktnx.net Git - mobile-ledger.git/commitdiff
@NotNull annotation
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 19:57:46 +0000 (22:57 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 25 Apr 2020 19:57:46 +0000 (22:57 +0300)
may help something somewhere

app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemHolder.java

index 77ce69a000dd96aaecc2e3ba95b1b27e4e692b78..3a75760718d102f882f9ed3956f2b2331e7e8991 100644 (file)
@@ -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);