Skip to content

Commit

Permalink
Fix: 졸업요건/성적 사항 탭 모달 버그 수정 #21
Browse files Browse the repository at this point in the history
  • Loading branch information
dkyuuum committed Feb 17, 2024
1 parent 7a8480e commit c2b2c5a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package umc.com.mobile.project.ui.gradInfo

import android.app.AlertDialog
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.LayoutInflater
import android.view.View
Expand Down Expand Up @@ -67,7 +68,9 @@ class GradeFragment : Fragment() {
})

viewModel.isNullCheckGrade.observe(viewLifecycleOwner) {
if (it) { showDialog() }
if (it) {
showDialog()
}
}

return binding.root
Expand Down Expand Up @@ -97,5 +100,9 @@ class GradeFragment : Fragment() {

val alertDialog = dialogBuilder.create()
alertDialog.show()

Handler().postDelayed({
alertDialog.dismiss()
}, 2000)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class AverageRVAdapter(private val viewModel: GradeViewModel) :

if (dataList[position].averageGrade == "0.0") {
viewModel.onSetNullCheckGrade(true)
} else {
viewModel.onSetNullCheckGrade(false)
}
}
}
Expand Down

0 comments on commit c2b2c5a

Please sign in to comment.