From: Damyan Ivanov Date: Mon, 3 Dec 2018 21:21:52 +0000 (+0000) Subject: working and surprisingly quick retrieval of existing account names X-Git-Tag: v0.3~347 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=1b71d34643211f180ac54ff167014a6f09a5894b;p=mobile-ledger.git working and surprisingly quick retrieval of existing account names --- diff --git a/app/src/main/java/net/ktnx/mobileledger/RetrieveAccountsTask.java b/app/src/main/java/net/ktnx/mobileledger/RetrieveAccountsTask.java index 85f2306c..3c48f2ed 100644 --- a/app/src/main/java/net/ktnx/mobileledger/RetrieveAccountsTask.java +++ b/app/src/main/java/net/ktnx/mobileledger/RetrieveAccountsTask.java @@ -8,19 +8,16 @@ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; -import java.net.Authenticator; import java.net.HttpURLConnection; import java.net.MalformedURLException; -import java.net.PasswordAuthentication; -import java.net.URL; import java.net.URLDecoder; import java.util.regex.Matcher; import java.util.regex.Pattern; abstract public class RetrieveAccountsTask extends android.os.AsyncTask { - protected int error; + int error; - SharedPreferences pref; + private SharedPreferences pref; public void setPref(SharedPreferences pref) { this.pref = pref; } @@ -29,26 +26,9 @@ abstract public class RetrieveAccountsTask extends android.os.AsyncTask