From 9f69c76b6d18bae6179ec48dc5142dc08b1dca4f Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 Jul 2020 17:22:19 +0200 Subject: [PATCH] CLean up --- .../java/app/fedilab/fedilabtube/WebviewConnectActivity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/WebviewConnectActivity.java b/app/src/main/java/app/fedilab/fedilabtube/WebviewConnectActivity.java index 5d54f4e..a3d47c1 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/WebviewConnectActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/WebviewConnectActivity.java @@ -17,7 +17,6 @@ package app.fedilab.fedilabtube; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; -import android.net.Uri; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; @@ -51,6 +50,7 @@ public class WebviewConnectActivity extends AppCompatActivity { private String clientId, clientSecret; private String url; + @SuppressWarnings("deprecation") public static void clearCookies(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { @@ -80,7 +80,6 @@ public class WebviewConnectActivity extends AppCompatActivity { if (url == null) finish(); - String instance = Uri.parse(url).getHost(); clientId = sharedpreferences.getString(Helper.CLIENT_ID, null); clientSecret = sharedpreferences.getString(Helper.CLIENT_SECRET, null);