Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af7af09 authored by frank PREEL's avatar frank PREEL Committed by Romain Hunault
Browse files

Context syntax issue

parent 0cc58908
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -256,14 +256,14 @@ public class NetworkAgentInfo implements Comparable<NetworkAgentInfo> {
        network = net;
        networkInfo = info;

        int useNwDNS = android.provider.Settings.System.getInt(mContext.getContentResolver(), "USE_NETWORK_DNS", 1);
        int useNwDNS = android.provider.Settings.System.getInt(context.getContentResolver(), "USE_NETWORK_DNS", 1);

        if ( 0 != useNwDNS ) {

        } else {
            java.util.Collection<InetAddress> dnses = new java.util.ArrayList<InetAddress>();
            try {
                String s = android.provider.Settings.System.getString(mContext.getContentResolver(), "OVERRIDE_DNS_IP_V4");
                String s = android.provider.Settings.System.getString(context.getContentResolver(), "OVERRIDE_DNS_IP_V4");
                if (s == null) s = "9.9.9.9";
                //if (DBG) log("Override dnses>"+s+"<");