mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 10:54:36 -06:00
[UI] Fix timetable lesson height. Add missing timetable settings.
This commit is contained in:
parent
6f12227c2e
commit
2ec06bc39a
@ -54,6 +54,13 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
||||
}
|
||||
|
||||
override fun getItems() = listOfNotNull(
|
||||
util.createActionItem(
|
||||
text = R.string.menu_timetable_config,
|
||||
icon = CommunityMaterial.Icon3.cmd_timetable
|
||||
) {
|
||||
TimetableConfigDialog(activity, reloadOnDismiss = false).show()
|
||||
},
|
||||
|
||||
util.createActionItem(
|
||||
text = R.string.menu_agenda_config,
|
||||
icon = CommunityMaterial.Icon.cmd_calendar_outline
|
||||
@ -70,7 +77,7 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
||||
|
||||
util.createActionItem(
|
||||
text = R.string.menu_messages_config,
|
||||
icon = CommunityMaterial.Icon.cmd_calendar_outline
|
||||
icon = CommunityMaterial.Icon.cmd_email_outline
|
||||
) {
|
||||
MessagesConfigDialog(activity, reloadOnDismiss = false).show()
|
||||
},
|
||||
|
@ -85,7 +85,7 @@ class TimetableDayFragment : LazyFragment(), CoroutineScope {
|
||||
startHour = startHour,
|
||||
endHour = endHour,
|
||||
dividerHeight = 1.dp,
|
||||
halfHourHeight = if (app.profile.loginStoreType == LOGIN_TYPE_USOS) 45.dp else 30.dp,
|
||||
halfHourHeight = if (app.profile.loginStoreType == LOGIN_TYPE_USOS) 45.dp else 60.dp,
|
||||
hourDividerColor = R.attr.hourDividerColor.resolveAttr(context),
|
||||
halfHourDividerColor = R.attr.halfHourDividerColor.resolveAttr(context),
|
||||
hourLabelWidth = 40.dp,
|
||||
|
Loading…
Reference in New Issue
Block a user