Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/src/main/java/com/dscvit/vitty/model/PeriodDetails.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package com.dscvit.vitty.model

import com.google.firebase.Timestamp
import java.util.Date
import java.util.UUID

data class PeriodDetails(
// var courseType: String = "",
val id: String = UUID.randomUUID().toString(),
var courseCode: String = "",
var courseName: String = "",
var startTime: Timestamp = Timestamp(Date()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ fun AcademicsScreenContent(
alertDaysBefore,
attachmentUrl,
->
coursePageViewModel.setCourseId(selectedCourseForReminder!!.code)
coursePageViewModel.setCourseTitle(selectedCourseForReminder!!.title)

coursePageViewModel.addReminder(
title = title,
description = description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,6 @@ fun CourseCard(
}
}

@RequiresApi(Build.VERSION_CODES.O)
@Composable
fun RemindersContent(
reminders: List<Reminder>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ private fun DayScheduleContent(
) {
items(
items = periods,
key = { period -> "${period.courseCode}_${period.slot}" },
key = { period -> period.id },
) { period ->
CircleMemberPeriodCard(
period = period,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ private fun DayScheduleContent(
) {
items(
items = periods,
key = { period -> "${periods.indexOf(period)}${period.startTime}_${period.courseCode}_${period.slot}_${period.endTime}" },
key = { period -> period.id },
) { period ->
FriendPeriodCard(
period = period,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private fun DayContent(
) {
items(
items = periods,
key = { period -> "${periods.indexOf(period)}${period.startTime}_${period.courseCode}_${period.slot}_${period.endTime}" },
key = { period -> period.id },
) { period ->
PeriodCard(
period = period,
Expand Down
Loading