1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2025-01-18 21:26:48 -06:00

Use FloatingActionButton.{show,hide} instead of using setVisibility (#1591)

This commit is contained in:
Michael 2021-10-16 11:17:00 +02:00 committed by GitHub
parent 4c8d9c8f7f
commit 54e9ea6478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,13 @@ class AttendanceFragment : BaseFragment<FragmentAttendanceBinding>(R.layout.frag
}
override fun showExcuseButton(show: Boolean) {
binding.attendanceExcuseButton.visibility = if (show) VISIBLE else GONE
with(binding.attendanceExcuseButton) {
if (show) {
show()
} else {
hide()
}
}
}
override fun showAttendanceDialog(lesson: Attendance) {