fix: apply warning fixes
This commit is contained in:
parent
08949c5f0d
commit
1ede1a4c2d
@ -214,9 +214,8 @@ suspend fun getScheduleDay(
|
||||
if ((type == ME.type) and (id == ME.unnId!!)) {
|
||||
val schedule = withContext(Dispatchers.IO) { loadSchedule(date) }
|
||||
Log.d("Schedule", schedule.joinToString())
|
||||
if (schedule.size != 0) {
|
||||
if (schedule.isNotEmpty())
|
||||
return schedule
|
||||
}
|
||||
}
|
||||
|
||||
return getSchedule(type, id, date, date)
|
||||
|
@ -376,7 +376,7 @@ fun loadSchedule(oid: Int): ScheduleUnit? {
|
||||
|
||||
fun loadSchedule(date: LocalDate): ArrayList<ScheduleUnit> {
|
||||
db.scheduleDao().getSchedule(date.format(DateTimeFormatter.ISO_DATE))
|
||||
.mapNotNull { Log.d("meow", "${it.oid}: ${loadSchedule(it.oid)}") }
|
||||
.map { Log.d("meow", "${it.oid}: ${loadSchedule(it.oid)}") }
|
||||
return ArrayList(
|
||||
db.scheduleDao().getSchedule(date.format(DateTimeFormatter.ISO_DATE))
|
||||
.mapNotNull { loadSchedule(it.oid) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user