File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
vector/src/main/java/im/vector/app/features/call/audio Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,14 @@ import dagger.hilt.android.AndroidEntryPoint
23
23
import im.vector.app.core.extensions.startForegroundCompat
24
24
import im.vector.app.core.services.VectorAndroidService
25
25
import im.vector.app.features.notifications.NotificationUtils
26
+ import im.vector.lib.core.utils.timer.Clock
26
27
import javax.inject.Inject
27
28
28
29
@AndroidEntryPoint
29
30
class MicrophoneAccessService : VectorAndroidService () {
30
31
31
32
@Inject lateinit var notificationUtils: NotificationUtils
33
+ @Inject lateinit var clock: Clock
32
34
private val binder = LocalBinder ()
33
35
34
36
override fun onStartCommand (intent : Intent ? , flags : Int , startId : Int ): Int {
@@ -38,7 +40,7 @@ class MicrophoneAccessService : VectorAndroidService() {
38
40
}
39
41
40
42
private fun showMicrophoneAccessNotification () {
41
- val notificationId = System .currentTimeMillis ().toInt()
43
+ val notificationId = clock.epochMillis ().toInt()
42
44
val notification = notificationUtils.buildMicrophoneAccessNotification()
43
45
startForegroundCompat(notificationId, notification)
44
46
}
You can’t perform that action at this time.
0 commit comments