]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/NetworkUtil.java
toCamelCase
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / utils / NetworkUtil.java
index 864175104a2b6612fd9c9b31aa72cc3afabee502..e6cc9acb73c5067bf5dfc5eac260bfcbf4821ef2 100644 (file)
@@ -29,10 +29,10 @@ import java.net.URL;
 
 public final class NetworkUtil {
     private static final int thirtySeconds = 30000;
-    public static HttpURLConnection prepare_connection(String path) throws IOException {
+    public static HttpURLConnection prepareConnection(String path) throws IOException {
         MobileLedgerProfile profile = Data.profile.get();
         final String backend_url = profile.getUrl();
-        final boolean use_auth = profile.isUseAuthentication();
+        final boolean use_auth = profile.isAuthEnabled();
         Log.d("network", "Connecting to " + backend_url + "/" + path);
         HttpURLConnection http =
                 (HttpURLConnection) new URL(backend_url + "/" + path).openConnection();