mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 10:54:58 +01:00
Code review fixes.
This commit is contained in:
parent
534d55a24e
commit
949d476623
@ -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()
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user