Unverified Commit cfc75696 authored by Mygod's avatar Mygod Committed by GitHub

Add comment

parent cf49ca19
......@@ -108,6 +108,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
if (active && Build.VERSION.SDK_INT >= 22) setUnderlyingNetworks(underlyingNetworks)
}
private val underlyingNetworks get() =
// clearing underlyingNetworks makes Android 9+ consider the network to be metered
if (Build.VERSION.SDK_INT >= 28 && metered) null else underlyingNetwork?.let { arrayOf(it) }
override fun onBind(intent: Intent) = when (intent.action) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment