From a20a4116fcc29b1a255ef555fcbaa14b1d370f64 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 24 Sep 2024 15:12:46 -0400 Subject: [PATCH] Support android API 34 --- .../src/main/kotlin/net/defined/mobile_nebula/MainActivity.kt | 2 +- .../main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/MainActivity.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/MainActivity.kt index dd83799..65a496e 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/MainActivity.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/MainActivity.kt @@ -98,7 +98,7 @@ class MainActivity: FlutterActivity() { apiClient = APIClient(context) - registerReceiver(refreshReceiver, IntentFilter(ACTION_REFRESH_SITES)) + registerReceiver(refreshReceiver, IntentFilter(ACTION_REFRESH_SITES), RECEIVER_NOT_EXPORTED) enqueueDNUpdater() } diff --git a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt index 620b46a..6516321 100644 --- a/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt +++ b/android/app/src/main/kotlin/net/defined/mobile_nebula/NebulaVpnService.kt @@ -213,7 +213,7 @@ class NebulaVpnService : VpnService() { } private fun registerReloadReceiver() { - registerReceiver(reloadReceiver, IntentFilter(ACTION_RELOAD)) + registerReceiver(reloadReceiver, IntentFilter(ACTION_RELOAD), RECEIVER_NOT_EXPORTED) } private fun unregisterReloadReceiver() {