mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-30 19:04:54 +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 FailToTransfer : VectorCallViewEvents()
|
||||||
object ShowScreenSharingPermissionDialog : VectorCallViewEvents()
|
object ShowScreenSharingPermissionDialog : VectorCallViewEvents()
|
||||||
object StopScreenSharingService : 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()
|
private val binder = LocalBinder()
|
||||||
|
|
||||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
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 notificationId = System.currentTimeMillis().toInt()
|
||||||
val notification = notificationUtils.buildScreenSharingNotification()
|
val notification = notificationUtils.buildScreenSharingNotification()
|
||||||
startForeground(notificationId, notification)
|
startForeground(notificationId, notification)
|
||||||
|
|
||||||
return START_STICKY
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onBind(intent: Intent?): IBinder {
|
override fun onBind(intent: Intent?): IBinder {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user