From a004bfa9a9afcf2db121d451d75097bb15617dec Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 20 Sep 2020 16:34:51 -0400 Subject: [PATCH] Update CommentAction.java --- .../main/java/awais/instagrabber/asyncs/CommentAction.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/asyncs/CommentAction.java b/app/src/main/java/awais/instagrabber/asyncs/CommentAction.java index 2a5dcaf5..9285bed7 100644 --- a/app/src/main/java/awais/instagrabber/asyncs/CommentAction.java +++ b/app/src/main/java/awais/instagrabber/asyncs/CommentAction.java @@ -17,7 +17,7 @@ import awais.instagrabber.utils.Utils; import static awais.instagrabber.utils.Utils.settingsHelper; -public class CommentAction extends AsyncTask { +public class CommentAction extends AsyncTask { private static final String TAG = "CommentAction"; private final String cookie; @@ -30,8 +30,7 @@ public class CommentAction extends AsyncTask { this.onTaskCompleteListener = onTaskCompleteListener; } - protected String doInBackground(String... rawAction) { - final String action = rawAction[0]; + protected String doInBackground(Void... lmao) { final String url = "https://i.instagram.com/api/v1/direct_v2/create_group_thread/"; HttpURLConnection urlConnection = null; try { @@ -57,10 +56,8 @@ public class CommentAction extends AsyncTask { if (urlConnection.getResponseCode() == HttpURLConnection.HTTP_OK) { return new JSONObject(NetworkUtils.readFromConnection(urlConnection)).getString("thread_id"); } - } catch (Throwable ex) { Log.e(TAG, "reply (CT): " + ex); - // Toast.makeText(getApplicationContext(), R.string.downloader_unknown_error, Toast.LENGTH_SHORT).show(); } finally { if (urlConnection != null) { urlConnection.disconnect();