|
|
@@ -103,16 +103,19 @@ class YearFragment : BaseFragment<FragmentYearBinding>() {
|
|
|
binding.editYear.requestFocus()
|
|
|
binding.editYear.isFocusable = true
|
|
|
binding.editYear.isFocusableInTouchMode = true
|
|
|
+ binding.editYear.postDelayed({ closeKeyBord(binding.editYear, mContext) }, 300)
|
|
|
if (dao != null) {
|
|
|
question = dao?.getQuestion(1)
|
|
|
if (question != null) {
|
|
|
binding.data = question
|
|
|
toastInfo = question!!.reviewItem
|
|
|
if (question!!.inputString.isNullOrEmpty().not()) {
|
|
|
- stringBuffer.delete(0, question!!.inputString.length - 1)
|
|
|
- stringBuffer.append(question!!.inputString)
|
|
|
- binding.editYear.setText(question!!.inputString)
|
|
|
- binding.editYear.setSelection(question!!.inputString.length)
|
|
|
+ binding.editYear.post {
|
|
|
+ stringBuffer.delete(0, question!!.inputString.length - 1)
|
|
|
+ stringBuffer.append(question!!.inputString)
|
|
|
+ binding.editYear.setText(question!!.inputString)
|
|
|
+ binding.editYear.setSelection(question!!.inputString.length)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|