From a1d27940cdceae5b9a0806b8d7c1db262d6201c4 Mon Sep 17 00:00:00 2001 From: Onuray Sahin Date: Fri, 18 Mar 2022 15:26:11 +0300 Subject: [PATCH] Create a foreground service. --- vector/src/main/AndroidManifest.xml | 8 +++++- .../location/LocationSharingService.kt | 27 +++++++++++++++++++ .../app/features/location/LocationTracker.kt | 2 ++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 vector/src/main/java/im/vector/app/features/location/LocationSharingService.kt diff --git a/vector/src/main/AndroidManifest.xml b/vector/src/main/AndroidManifest.xml index 1d99fba91a..71ea6aaf8f 100644 --- a/vector/src/main/AndroidManifest.xml +++ b/vector/src/main/AndroidManifest.xml @@ -46,6 +46,7 @@ + @@ -84,8 +85,8 @@ android:resizeableActivity="true" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" - android:theme="@style/Theme.Vector.Light" android:taskAffinity="${applicationId}.${appTaskAffinitySuffix}" + android:theme="@style/Theme.Vector.Light" tools:replace="android:allowBackup"> @@ -369,6 +370,11 @@ + +