From ee56a14cd4a82ca56d35a259ca3b1953d60a5a34 Mon Sep 17 00:00:00 2001 From: PatelVatsalB21 Date: Wed, 17 Mar 2021 17:25:57 +0530 Subject: [PATCH] fix 285: Identification date and layout fixed in FormIdentificationDetailsFragment --- .../FormIdentificationDetailsFragment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/apache/fineract/ui/online/identification/createidentification/FormIdentificationDetailsFragment.java b/app/src/main/java/org/apache/fineract/ui/online/identification/createidentification/FormIdentificationDetailsFragment.java index dc705030..48740c61 100644 --- a/app/src/main/java/org/apache/fineract/ui/online/identification/createidentification/FormIdentificationDetailsFragment.java +++ b/app/src/main/java/org/apache/fineract/ui/online/identification/createidentification/FormIdentificationDetailsFragment.java @@ -144,9 +144,11 @@ public void editIdentificationCardDetails(Identification identification) { @OnClick(R.id.et_expiration_date) void onClickDateOfBirth() { - new DatePickerDialog(getActivity(), date, calendar + DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), date, calendar .get(Calendar.YEAR), calendar.get(Calendar.MONTH), - calendar.get(Calendar.DAY_OF_MONTH)).show(); + calendar.get(Calendar.DAY_OF_MONTH)); + datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis()); + datePickerDialog.show(); } private void setDateOfBirth() { @@ -193,8 +195,6 @@ public void afterTextChanged(Editable s) { validateNumber(); } else if (etType.getText().hashCode() == s.hashCode()) { validateType(); - } else if (etExpirationDate.getText().hashCode() == s.hashCode()) { - validateExpirationDate(); } else if (etIssuer.getText().hashCode() == s.hashCode()) { validateIssuer(); }