forked from github/szkolny
[Notes] Hide notes button in day dialog.
This commit is contained in:
parent
50cb0acc7d
commit
a88cfb8ae3
@ -38,7 +38,7 @@ class DayDialog(
|
||||
private val profileId: Int,
|
||||
private val date: Date,
|
||||
private val eventTypeId: Long? = null,
|
||||
private val showNotes: Boolean = true,
|
||||
private val showNotes: Boolean = false,
|
||||
onShowListener: ((tag: String) -> Unit)? = null,
|
||||
onDismissListener: ((tag: String) -> Unit)? = null,
|
||||
) : BindingDialog<DialogDayBinding>(activity, onShowListener, onDismissListener) {
|
||||
@ -212,6 +212,7 @@ class DayDialog(
|
||||
onShowListener = onShowListener,
|
||||
onDismissListener = onDismissListener,
|
||||
)
|
||||
b.legend.isVisible = showNotes
|
||||
if (showNotes)
|
||||
NoteManager.setLegendText(date, b.legend)
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ class AttendanceDetailsDialog(
|
||||
onShowListener = onShowListener,
|
||||
onDismissListener = onDismissListener,
|
||||
)
|
||||
b.legend.isVisible = showNotes
|
||||
if (showNotes)
|
||||
NoteManager.setLegendText(attendance, b.legend)
|
||||
}
|
||||
|
@ -101,6 +101,7 @@ class GradeDetailsDialog(
|
||||
onShowListener = onShowListener,
|
||||
onDismissListener = onDismissListener,
|
||||
)
|
||||
b.legend.isVisible = showNotes
|
||||
if (showNotes)
|
||||
NoteManager.setLegendText(grade, b.legend)
|
||||
}
|
||||
|
@ -259,6 +259,7 @@ class LessonDetailsDialog(
|
||||
onShowListener = onShowListener,
|
||||
onDismissListener = onDismissListener,
|
||||
)
|
||||
b.legend.isVisible = showNotes
|
||||
if (showNotes)
|
||||
NoteManager.setLegendText(lesson, b.legend)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user