mirror of
				https://framagit.org/tom79/fedilab-tube
				synced 2025-06-05 21:09:11 +02:00 
			
		
		
		
	CLean up
This commit is contained in:
		| @@ -17,7 +17,6 @@ package app.fedilab.fedilabtube; | |||||||
| import android.annotation.SuppressLint; | import android.annotation.SuppressLint; | ||||||
| import android.content.Context; | import android.content.Context; | ||||||
| import android.content.SharedPreferences; | import android.content.SharedPreferences; | ||||||
| import android.net.Uri; |  | ||||||
| import android.os.AsyncTask; | import android.os.AsyncTask; | ||||||
| import android.os.Build; | import android.os.Build; | ||||||
| import android.os.Bundle; | import android.os.Bundle; | ||||||
| @@ -51,6 +50,7 @@ public class WebviewConnectActivity extends AppCompatActivity { | |||||||
|     private String clientId, clientSecret; |     private String clientId, clientSecret; | ||||||
|     private String url; |     private String url; | ||||||
|  |  | ||||||
|  |     @SuppressWarnings("deprecation") | ||||||
|     public static void clearCookies(Context context) { |     public static void clearCookies(Context context) { | ||||||
|  |  | ||||||
|         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { |         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { | ||||||
| @@ -80,7 +80,6 @@ public class WebviewConnectActivity extends AppCompatActivity { | |||||||
|         if (url == null) |         if (url == null) | ||||||
|             finish(); |             finish(); | ||||||
|  |  | ||||||
|         String instance = Uri.parse(url).getHost(); |  | ||||||
|         clientId = sharedpreferences.getString(Helper.CLIENT_ID, null); |         clientId = sharedpreferences.getString(Helper.CLIENT_ID, null); | ||||||
|         clientSecret = sharedpreferences.getString(Helper.CLIENT_SECRET, null); |         clientSecret = sharedpreferences.getString(Helper.CLIENT_SECRET, null); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user