Merge "Fix CS external dependencies on CarrierDefaultApp"
This commit is contained in:
@@ -86,7 +86,7 @@ public class CaptivePortalLoginActivity extends Activity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
mCm = ConnectivityManager.from(this);
|
||||
mCm = getSystemService(ConnectivityManager.class);
|
||||
mUrl = getUrlForCaptivePortal();
|
||||
if (mUrl == null) {
|
||||
done(false);
|
||||
@@ -161,7 +161,6 @@ public class CaptivePortalLoginActivity extends Activity {
|
||||
if (network != null) {
|
||||
network = network.getPrivateDnsBypassingCopy();
|
||||
mCm.bindProcessToNetwork(network);
|
||||
mCm.setProcessDefaultNetworkForHostResolution(network);
|
||||
}
|
||||
mNetwork = network;
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public class ProvisionObserver extends JobService {
|
||||
case PROVISION_OBSERVER_REEVALUATION_JOB_ID:
|
||||
if (isProvisioned(this)) {
|
||||
Log.d(TAG, "device provisioned, force network re-evaluation");
|
||||
final ConnectivityManager connMgr = ConnectivityManager.from(this);
|
||||
final ConnectivityManager connMgr = getSystemService(ConnectivityManager.class);
|
||||
Network[] info = connMgr.getAllNetworks();
|
||||
for (Network nw : info) {
|
||||
final NetworkCapabilities nc = connMgr.getNetworkCapabilities(nw);
|
||||
|
||||
Reference in New Issue
Block a user