From 79afdf724f23725fd82eb73046f76e9aa070353b Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 25 Mar 2022 13:48:20 +0300 Subject: [PATCH] Code review fixes. --- vector/src/main/AndroidManifest.xml | 1 - .../app/features/location/LocationSharingFragment.kt | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 71ea6aaf8f..d52e95b382 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -46,7 +46,6 @@ - diff --git a/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt b/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt index d4582d98b9..b779b50c8b 100644 --- a/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt +++ b/vector/src/main/java/im/vector/app/features/location/LocationSharingFragment.kt @@ -180,11 +180,10 @@ class LocationSharingFragment @Inject constructor( } private fun handleStartLiveLocationService(event: LocationSharingViewEvents.StartLiveLocationService) { + val args = LocationSharingService.RoomArgs(event.sessionId, event.roomId, event.duration) + Intent(requireContext(), LocationSharingService::class.java) - .apply { - putExtra(LocationSharingService.EXTRA_ROOM_ARGS, - LocationSharingService.RoomArgs(event.sessionId, event.roomId, event.duration)) - } + .putExtra(LocationSharingService.EXTRA_ROOM_ARGS, args) .also { ContextCompat.startForegroundService(requireContext(), it) }