mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-19 00:36:48 -06:00
Use FloatingActionButton.{show,hide} instead of using setVisibility (#1591)
This commit is contained in:
parent
4c8d9c8f7f
commit
54e9ea6478
@ -218,7 +218,13 @@ class AttendanceFragment : BaseFragment<FragmentAttendanceBinding>(R.layout.frag
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun showExcuseButton(show: Boolean) {
|
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) {
|
override fun showAttendanceDialog(lesson: Attendance) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user