[Push/Mobidziennik] Add support for behaviour grades push.

This commit is contained in:
Kuba Szczodrzyński 2020-02-16 13:44:45 +01:00
parent 4ad826ebe8
commit fdad3b9997

View File

@ -53,7 +53,7 @@ class SzkolnyMobidziennikFirebase(val app: App, val profiles: List<Profile>, val
/* assets/www/js/push.js */ /* assets/www/js/push.js */
val viewIdPair = when (type) { val viewIdPair = when (type) {
"wiadOdebrana" -> DRAWER_ITEM_MESSAGES to TYPE_RECEIVED "wiadOdebrana" -> DRAWER_ITEM_MESSAGES to TYPE_RECEIVED
"oceny", "ocenyKoncowe" -> DRAWER_ITEM_GRADES to 0 "oceny", "ocenyKoncowe", "zachowanie" -> DRAWER_ITEM_GRADES to 0
"uwagi" -> DRAWER_ITEM_BEHAVIOUR to 0 "uwagi" -> DRAWER_ITEM_BEHAVIOUR to 0
"nieobecnoscPierwszaLekcja", "nieobecnosciDzisiaj" -> DRAWER_ITEM_ATTENDANCE to 0 "nieobecnoscPierwszaLekcja", "nieobecnosciDzisiaj" -> DRAWER_ITEM_ATTENDANCE to 0
else -> return@run else -> return@run