From a6398d6813e7db8a29e713f9cb6001b7b81e8f29 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Thu, 26 Sep 2024 14:43:55 -0400 Subject: [PATCH] Support android API 34 (#164) --- .../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() {