From 1b71d34643211f180ac54ff167014a6f09a5894b Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Mon, 3 Dec 2018 21:21:52 +0000 Subject: [PATCH] working and surprisingly quick retrieval of existing account names --- .../mobileledger/RetrieveAccountsTask.java | 30 ++++--------------- 1 file changed, 5 insertions(+), 25 deletions(-) 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