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;
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);
commentButton.setLayoutParams(lp);
}
else {
- // hiding; hide the comment comment view and align amounts layout under it
+ // hiding; hide the comment view and align the comment bottom to the amount
tvComment.setVisibility(View.GONE);
ConstraintLayout.LayoutParams lp =
(ConstraintLayout.LayoutParams) commentButton.getLayoutParams();
- lp.bottomToBottom = R.id.ntr_account; // R.id.parent doesn't work here
+ lp.bottomToBottom = R.id.amount_layout; // R.id.parent doesn't work here
commentButton.setLayoutParams(lp);
}