From b6bb5865093cf2bd68145f2d3a05185902bc68c2 Mon Sep 17 00:00:00 2001 From: 0x330a <92654767+0x330a@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:32:04 +1100 Subject: [PATCH] feat: add foreground types to key caching service and call service --- app/src/main/AndroidManifest.xml | 8 +++++++- .../thoughtcrime/securesms/service/KeyCachingService.java | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a820caeaab..f2a4642b7a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -34,6 +34,8 @@ + + @@ -307,11 +309,15 @@ android:value="org.thoughtcrime.securesms.home.HomeActivity" /> + android:exported="false" android:foregroundServiceType="specialUse"> + + + = 34) { + startForeground(SERVICE_RUNNING_ID, builder.build(), ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE); + } else { + startForeground(SERVICE_RUNNING_ID, builder.build()); + } } private PendingIntent buildLockIntent() {