|
@@ -139,11 +139,11 @@ class InputFragment : BaseFragment<FragmentInputBinding>() {
|
|
|
*/
|
|
|
private fun loadData() {
|
|
|
binding.editYear.setText("")
|
|
|
+ if (stringBuffer.toString().isNullOrEmpty().not()) {
|
|
|
+ val length = stringBuffer.length
|
|
|
+ stringBuffer.delete(0, length)
|
|
|
+ }
|
|
|
if (dao != null) {
|
|
|
- if (stringBuffer.toString().isNullOrEmpty().not()) {
|
|
|
- val length = stringBuffer.length
|
|
|
- stringBuffer.delete(0, length)
|
|
|
- }
|
|
|
question = dao?.getQuestion(questionId)
|
|
|
if (question != null) {
|
|
|
binding.data = question
|