Code review fixes.

This commit is contained in:
Onuray Sahin 2022-04-21 15:09:41 +03:00
parent 534d55a24e
commit 949d476623
2 changed files with 6 additions and 6 deletions

View file

@ -32,7 +32,4 @@ sealed class VectorCallViewEvents : VectorViewEvents {
object FailToTransfer : VectorCallViewEvents()
object ShowScreenSharingPermissionDialog : VectorCallViewEvents()
object StopScreenSharingService : VectorCallViewEvents()
// data class CallAnswered(val content: CallAnswerContent) : VectorCallViewEvents()
// data class CallHangup(val content: CallHangupContent) : VectorCallViewEvents()
// object CallAccepted : VectorCallViewEvents()
}

View file

@ -31,12 +31,15 @@ class ScreenCaptureService : VectorService() {
private val binder = LocalBinder()
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
// Show a sticky notification
showStickyNotification()
return START_STICKY
}
private fun showStickyNotification() {
val notificationId = System.currentTimeMillis().toInt()
val notification = notificationUtils.buildScreenSharingNotification()
startForeground(notificationId, notification)
return START_STICKY
}
override fun onBind(intent: Intent?): IBinder {