Post: minor cleanup

nightly-build-test
Grisha Kruglov 5 years ago committed by Grisha Kruglov
parent c2fb99a73f
commit eeaeb973ff

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

Loading…
Cancel
Save