Update app/src/main/java/org/thoughtcrime/securesms/service/KeyCachingService.java

Co-authored-by: Andrew <andrewgallasch@gmail.com>
This commit is contained in:
ThomasSession
2024-08-02 08:43:48 +10:00
committed by GitHub
parent d8bcb83de5
commit fb7c24a26d

View File

@@ -255,7 +255,7 @@ public class KeyCachingService extends Service {
stopForeground(true); stopForeground(true);
int type = 0; int type = 0;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { if (Build.VERSION.SDK_INT >= 34) {
type = ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE; type = ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE;
} }