]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/NetworkUtil.java
somewhat complete profile implementation
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / utils / NetworkUtil.java
index 864175104a2b6612fd9c9b31aa72cc3afabee502..efb1ac973b7c6b874174394bca5de1367296199b 100644 (file)
@@ -32,7 +32,7 @@ public final class NetworkUtil {
     public static HttpURLConnection prepare_connection(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();