From 9bc7822e13699ec3df942d62338e0d358ac5e107 Mon Sep 17 00:00:00 2001 From: Hariharan Date: Fri, 26 Feb 2021 17:36:46 +0530 Subject: [PATCH] fix:#1216 Minimum date picker fixed --- .../mifospay/standinginstruction/ui/SIDetailsActivity.kt | 3 +++ 1 file changed, 3 insertions(+) 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 552344c95..4ff34f885 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 @@ -19,6 +19,7 @@ import org.mifos.mobilewallet.mifospay.standinginstruction.presenter.StandingIns import org.mifos.mobilewallet.mifospay.utils.Constants import org.mifos.mobilewallet.mifospay.utils.DialogBox import org.mifos.mobilewallet.mifospay.utils.Utils +import java.text.SimpleDateFormat import java.util.* import javax.inject.Inject @@ -40,6 +41,7 @@ class SIDetailsActivity : BaseActivity(), StandingInstructionContract.SIDetailsV lateinit var mPresenter: StandingInstructionDetailsPresenter private lateinit var mStandingInstructionPresenter: StandingInstructionContract.StandingInstructorDetailsPresenter + private lateinit var mOptionsMenu: Menu override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) @@ -68,6 +70,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",Locale.getDefault()).parse(tv_valid_from.text.toString()).time picker.show() }