Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix#1216:Minimum Date in *Valid Till* DatePicker fixed. #1217

Closed
wants to merge 1 commit into from
Closed
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 @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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()
}

Expand Down