Support android API 34

This commit is contained in:
Ian VanSchooten 2024-09-24 15:12:46 -04:00
parent 6f12f5a328
commit 54cce22be4
2 changed files with 3 additions and 3 deletions

View File

@ -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()
}

View File

@ -209,11 +209,11 @@ class NebulaVpnService : VpnService() {
}
}
registerReceiver(receiver, IntentFilter(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED))
registerReceiver(receiver, IntentFilter(PowerManager.ACTION_DEVICE_IDLE_MODE_CHANGED), RECEIVER_EXPORTED)
}
private fun registerReloadReceiver() {
registerReceiver(reloadReceiver, IntentFilter(ACTION_RELOAD))
registerReceiver(reloadReceiver, IntentFilter(ACTION_RELOAD), RECEIVER_NOT_EXPORTED)
}
private fun unregisterReloadReceiver() {