Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Fix 285: Identification date and layout fixed in FormIdentificationDetailsFragment #150

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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();
}
Expand Down