mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 16:47:42 +00:00
Update app/src/main/java/org/thoughtcrime/securesms/service/KeyCachingService.java
Co-authored-by: Andrew <andrewgallasch@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user