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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -255,7 +255,7 @@ public class KeyCachingService extends Service {
stopForeground(true);
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;
}