Skip to content

Commit

Permalink
fix#1216:Api requirement conditions removed
Browse files Browse the repository at this point in the history
  • Loading branch information
haran2248 committed Feb 23, 2021
1 parent dcd67f8 commit 4c365ac
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
}

Expand Down

0 comments on commit 4c365ac

Please sign in to comment.