From 9692d5b72dd0a2c8c2cc9ae678ba3660104ef621 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 4 Mar 2023 15:33:05 +0100 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/ActivityError.java | 2 -- app/src/main/java/eu/faircode/email/AdapterAttachment.java | 2 -- app/src/main/java/eu/faircode/email/AdapterImage.java | 2 -- app/src/main/java/eu/faircode/email/FragmentBase.java | 3 --- app/src/main/java/eu/faircode/email/Helper.java | 1 - app/src/main/java/eu/faircode/email/StyleHelper.java | 4 ---- 6 files changed, 14 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityError.java b/app/src/main/java/eu/faircode/email/ActivityError.java index 5ba092a005..f813b57a67 100644 --- a/app/src/main/java/eu/faircode/email/ActivityError.java +++ b/app/src/main/java/eu/faircode/email/ActivityError.java @@ -19,8 +19,6 @@ package eu.faircode.email; Copyright 2018-2023 by Marcel Bokhorst (M66B) */ -import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_OAUTH; - import android.content.Intent; import android.os.Bundle; import android.text.method.LinkMovementMethod; diff --git a/app/src/main/java/eu/faircode/email/AdapterAttachment.java b/app/src/main/java/eu/faircode/email/AdapterAttachment.java index 16a2ef06e8..7d674f9ed1 100644 --- a/app/src/main/java/eu/faircode/email/AdapterAttachment.java +++ b/app/src/main/java/eu/faircode/email/AdapterAttachment.java @@ -21,7 +21,6 @@ package eu.faircode.email; import android.app.Dialog; import android.content.Context; -import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.Typeface; @@ -50,7 +49,6 @@ import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleObserver; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.OnLifecycleEvent; -import androidx.localbroadcastmanager.content.LocalBroadcastManager; import androidx.preference.PreferenceManager; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.LinearLayoutManager; diff --git a/app/src/main/java/eu/faircode/email/AdapterImage.java b/app/src/main/java/eu/faircode/email/AdapterImage.java index 071cd97fee..f1082a89c9 100644 --- a/app/src/main/java/eu/faircode/email/AdapterImage.java +++ b/app/src/main/java/eu/faircode/email/AdapterImage.java @@ -20,7 +20,6 @@ package eu.faircode.email; */ import android.content.Context; -import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.AnimatedImageDrawable; @@ -41,7 +40,6 @@ import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleObserver; import androidx.lifecycle.LifecycleOwner; import androidx.lifecycle.OnLifecycleEvent; -import androidx.localbroadcastmanager.content.LocalBroadcastManager; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.ListUpdateCallback; import androidx.recyclerview.widget.RecyclerView; diff --git a/app/src/main/java/eu/faircode/email/FragmentBase.java b/app/src/main/java/eu/faircode/email/FragmentBase.java index a4cca5fd0c..09c161f8b8 100644 --- a/app/src/main/java/eu/faircode/email/FragmentBase.java +++ b/app/src/main/java/eu/faircode/email/FragmentBase.java @@ -24,11 +24,9 @@ import static android.app.Activity.RESULT_OK; import android.app.Activity; import android.app.RecoverableSecurityException; -import android.content.BroadcastReceiver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; -import android.content.IntentFilter; import android.content.IntentSender; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; @@ -65,7 +63,6 @@ import androidx.fragment.app.FragmentResultListener; import androidx.lifecycle.Lifecycle; import androidx.lifecycle.LifecycleObserver; import androidx.lifecycle.OnLifecycleEvent; -import androidx.localbroadcastmanager.content.LocalBroadcastManager; import androidx.preference.PreferenceManager; import java.io.File; diff --git a/app/src/main/java/eu/faircode/email/Helper.java b/app/src/main/java/eu/faircode/email/Helper.java index 65b1e0ffd8..605b0fab4d 100644 --- a/app/src/main/java/eu/faircode/email/Helper.java +++ b/app/src/main/java/eu/faircode/email/Helper.java @@ -21,7 +21,6 @@ package eu.faircode.email; import static android.os.Process.THREAD_PRIORITY_BACKGROUND; import static androidx.browser.customtabs.CustomTabsService.ACTION_CUSTOM_TABS_CONNECTION; - import static com.google.android.material.textfield.TextInputLayout.END_ICON_NONE; import static com.google.android.material.textfield.TextInputLayout.END_ICON_PASSWORD_TOGGLE; diff --git a/app/src/main/java/eu/faircode/email/StyleHelper.java b/app/src/main/java/eu/faircode/email/StyleHelper.java index ebcd78d293..18c389bbdc 100644 --- a/app/src/main/java/eu/faircode/email/StyleHelper.java +++ b/app/src/main/java/eu/faircode/email/StyleHelper.java @@ -62,7 +62,6 @@ import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.widget.PopupMenu; -import androidx.core.content.ContextCompat; import androidx.core.content.res.ResourcesCompat; import androidx.lifecycle.LifecycleOwner; import androidx.preference.PreferenceManager; @@ -71,9 +70,6 @@ import com.flask.colorpicker.ColorPickerView; import com.flask.colorpicker.builder.ColorPickerClickListener; import com.flask.colorpicker.builder.ColorPickerDialogBuilder; -import org.jsoup.nodes.Document; -import org.jsoup.nodes.Element; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collections;