Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Post: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Grisha Kruglov committed Sep 11, 2019
1 parent b6daf8a commit 798cb56
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class BackgroundServices(
PushConfig(projectId)
}

val pushService by lazy { FirebasePush() }
private val pushService by lazy { FirebasePush() }

val push by lazy {
AutoPushFeature(
Expand All @@ -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)
}
}
}
Expand Down

0 comments on commit 798cb56

Please sign in to comment.