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
2323import im.vector.app.core.extensions.startForegroundCompat
2424import im.vector.app.core.services.VectorAndroidService
2525import im.vector.app.features.notifications.NotificationUtils
26+ import im.vector.lib.core.utils.timer.Clock
2627import javax.inject.Inject
2728
2829@AndroidEntryPoint
2930class MicrophoneAccessService : VectorAndroidService () {
3031
3132 @Inject lateinit var notificationUtils: NotificationUtils
33+ @Inject lateinit var clock: Clock
3234 private val binder = LocalBinder ()
3335
3436 override fun onStartCommand (intent : Intent ? , flags : Int , startId : Int ): Int {
@@ -38,7 +40,7 @@ class MicrophoneAccessService : VectorAndroidService() {
3840 }
3941
4042 private fun showMicrophoneAccessNotification () {
41- val notificationId = System .currentTimeMillis ().toInt()
43+ val notificationId = clock.epochMillis ().toInt()
4244 val notification = notificationUtils.buildMicrophoneAccessNotification()
4345 startForegroundCompat(notificationId, notification)
4446 }
You can’t perform that action at this time.
0 commit comments