1
0
Fork 0

Post: minor cleanup

master
Grisha Kruglov 2019-09-10 17:26:40 -07:00 committed by Grisha Kruglov
parent c2fb99a73f
commit eeaeb973ff
1 changed files with 3 additions and 3 deletions

View File

@ -99,7 +99,7 @@ class BackgroundServices(
PushConfig(projectId) PushConfig(projectId)
} }
val pushService by lazy { FirebasePush() } private val pushService by lazy { FirebasePush() }
val push by lazy { val push by lazy {
AutoPushFeature( AutoPushFeature(
@ -119,8 +119,8 @@ class BackgroundServices(
private val logger = Logger("DeviceEventsObserver") private val logger = Logger("DeviceEventsObserver")
override fun onEvents(events: List<DeviceEvent>) { override fun onEvents(events: List<DeviceEvent>) {
logger.info("Received ${events.size} device event(s)") logger.info("Received ${events.size} device event(s)")
events.filter { it is DeviceEvent.TabReceived }.forEach { events.filterIsInstance<DeviceEvent.TabReceived>().forEach {
notificationManager.showReceivedTabs(it as DeviceEvent.TabReceived) notificationManager.showReceivedTabs(it)
} }
} }
} }