mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-06-10 20:50:47 +02:00
Implement wear module base.
This commit is contained in:
@ -299,7 +299,7 @@ fun colorFromCssName(name: String): Int {
|
||||
"orange" -> 0xffffa500
|
||||
"black" -> 0xff000000
|
||||
"white" -> 0xffffffff
|
||||
else -> -1
|
||||
else -> -1L
|
||||
}.toInt()
|
||||
}
|
||||
|
||||
|
@ -152,13 +152,14 @@ class HomeFragment : Fragment(), CoroutineScope {
|
||||
|
||||
val items = mutableListOf<HomeCard>()
|
||||
cards.mapNotNullTo(items) {
|
||||
@Suppress("USELESS_CAST")
|
||||
when (it.cardId) {
|
||||
HomeCard.CARD_LUCKY_NUMBER -> HomeLuckyNumberCard(it.cardId, app, activity, this, app.profile)
|
||||
HomeCard.CARD_TIMETABLE -> HomeTimetableCard(it.cardId, app, activity, this, app.profile)
|
||||
HomeCard.CARD_GRADES -> HomeGradesCard(it.cardId, app, activity, this, app.profile)
|
||||
HomeCard.CARD_EVENTS -> HomeEventsCard(it.cardId, app, activity, this, app.profile)
|
||||
else -> null
|
||||
}
|
||||
} as HomeCard?
|
||||
}
|
||||
//if (App.devMode)
|
||||
// items += HomeDebugCard(100, app, activity, this, app.profile)
|
||||
|
Reference in New Issue
Block a user