diff --git a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt index 4da19c6c7..8cb364485 100644 --- a/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt +++ b/mifospay/src/main/java/org/mifos/mobilewallet/mifospay/standinginstruction/ui/SIDetailsActivity.kt @@ -65,8 +65,6 @@ class SIDetailsActivity : BaseActivity(), StandingInstructionContract.SIDetailsV setUpUI() } - @SuppressLint("SimpleDateFormat") - @RequiresApi(Build.VERSION_CODES.O) private fun setUpUI() { tv_edit_pick.setOnClickListener { val calendar: Calendar = Calendar.getInstance() @@ -77,7 +75,7 @@ class SIDetailsActivity : BaseActivity(), StandingInstructionContract.SIDetailsV DatePickerDialog.OnDateSetListener { view, year, monthOfYear, dayOfMonth -> tv_valid_till.text = "$dayOfMonth-${(monthOfYear + 1)}-$year" }, year, month, day) - picker.datePicker.minDate=SimpleDateFormat("dd-MM-yyyy").parse(tv_valid_from.text.toString()).time + picker.datePicker.minDate = SimpleDateFormat("dd-MM-yyyy").parse(tv_valid_from.text.toString()).time picker.show() }