]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/App.java
Data: migrate profile to a private variable, provide methods for accessing it
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / App.java
index b47e6d7faf14533a272517e4ac971badb0266061..f0f7c013230f92913d82e6978e1da715f0420bee 100644 (file)
@@ -55,8 +55,8 @@ public class App extends Application {
         Authenticator.setDefault(new Authenticator() {
             @Override
             protected PasswordAuthentication getPasswordAuthentication() {
-                MobileLedgerProfile p = Data.profile.getValue();
-                if ((p != null) && p.isAuthEnabled()) {
+                MobileLedgerProfile p = Data.getProfile();
+                if (p.isAuthEnabled()) {
                     try {
                         final URL url = new URL(p.getUrl());
                         final String requestingHost = getRequestingHost();