change async
This commit is contained in:
parent
0b7adb756f
commit
4a6c5a3fc0
|
@ -19,7 +19,6 @@ import android.content.SharedPreferences;
|
|||
import android.os.Build;
|
||||
import android.text.Html;
|
||||
import android.text.SpannableString;
|
||||
import android.util.Log;
|
||||
|
||||
import com.google.gson.JsonObject;
|
||||
|
||||
|
@ -146,7 +145,6 @@ public class HttpsConnection {
|
|||
*/
|
||||
public String get(String urlConnection, int timeout, HashMap<String, String> paramaters, String token) throws IOException, NoSuchAlgorithmException, KeyManagementException, HttpsConnectionException {
|
||||
|
||||
Log.v(Helper.TAG,"get1: " + urlConnection);
|
||||
Map<String, Object> params = new LinkedHashMap<>();
|
||||
if (paramaters != null) {
|
||||
Iterator<Map.Entry<String, String>> it = paramaters.entrySet().iterator();
|
||||
|
@ -268,7 +266,6 @@ public class HttpsConnection {
|
|||
|
||||
public String get(String urlConnection) throws IOException, NoSuchAlgorithmException, KeyManagementException, HttpsConnectionException {
|
||||
|
||||
Log.v(Helper.TAG,"get2: " + urlConnection);
|
||||
URL url = new URL(urlConnection);
|
||||
if (urlConnection.startsWith("https://")) {
|
||||
if (proxy != null)
|
||||
|
@ -364,7 +361,6 @@ public class HttpsConnection {
|
|||
|
||||
|
||||
public String post(String urlConnection, int timeout, HashMap<String, String> paramaters, String token) throws IOException, NoSuchAlgorithmException, KeyManagementException, HttpsConnectionException {
|
||||
Log.v(Helper.TAG,"post1: " + urlConnection);
|
||||
URL url = new URL(urlConnection);
|
||||
Map<String, Object> params = new LinkedHashMap<>();
|
||||
if (paramaters != null) {
|
||||
|
|
Loading…
Reference in New Issue