From a3d561e1446545aa93341158f0a913e75529f783 Mon Sep 17 00:00:00 2001 From: Emux Date: Sat, 9 Dec 2023 14:00:50 +0200 Subject: [PATCH] Android targetSdk 34 --- brouter-routing-app/src/main/AndroidManifest.xml | 5 +++++ .../src/main/java/btools/routingapp/DownloadWorker.java | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/brouter-routing-app/src/main/AndroidManifest.xml b/brouter-routing-app/src/main/AndroidManifest.xml index e210ef7..831deea 100644 --- a/brouter-routing-app/src/main/AndroidManifest.xml +++ b/brouter-routing-app/src/main/AndroidManifest.xml @@ -10,6 +10,7 @@ + + = Build.VERSION_CODES.Q) + setForegroundAsync(new ForegroundInfo(NOTIFICATION_ID, notificationBuilder.build(), ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC)); + else + setForegroundAsync(new ForegroundInfo(NOTIFICATION_ID, notificationBuilder.build())); try { if (DEBUG) Log.d(LOG_TAG, "Download lookup & profiles"); if (!downloadLookup()) {