Joe
02/09/2018, 7:10 PMsetProcessDefaultNetwork(...)
is missing. Am I missing an SDK or something? I’m thinking this may be a Kotlin issue, but I’m not sure.
if (isEnabled && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
connectivityManager.bindProcessToNetwork(network)
} else {
connectivityManager.setProcessDefaultNetwork(network)
}
dave08
02/11/2018, 3:32 AM