Archived
Fixed filtering behaviour, since it wouldn't recognise items with two preferences if only one had been selected; added icons for preferences
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package com.denizk0461.studip.data
|
||||
|
||||
import com.denizk0461.studip.model.StudIPEvent
|
||||
import com.denizk0461.studip.R
|
||||
|
||||
object Misc {
|
||||
|
||||
@@ -52,6 +52,20 @@ object Misc {
|
||||
"21:45" to 7,
|
||||
)
|
||||
|
||||
val indexToDrawable: Map<Int, Int> = mapOf(
|
||||
0 to R.drawable.handshake,
|
||||
1 to R.drawable.fish,
|
||||
2 to R.drawable.chicken,
|
||||
3 to R.drawable.sheep,
|
||||
4 to R.drawable.yoga,
|
||||
5 to R.drawable.cow,
|
||||
6 to R.drawable.pig,
|
||||
7 to R.drawable.leaf,
|
||||
8 to R.drawable.carrot,
|
||||
9 to R.drawable.deer,
|
||||
10 to R.drawable.circle,
|
||||
)
|
||||
|
||||
fun parseTimeslot(time: String): Pair<Int, Int> {
|
||||
val splitTime = time.split(" - ")
|
||||
val start = timeslotStartMap[splitTime[0]] ?: 0
|
||||
|
||||
Reference in New Issue
Block a user