diff --git a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java index 963f5924..a9ec9705 100644 --- a/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/ClaimListAdapter.java @@ -21,7 +21,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import io.lbry.browser.MainActivity; import io.lbry.browser.R; import io.lbry.browser.listener.SelectionModeListener; import io.lbry.browser.model.Claim; diff --git a/app/src/main/java/io/lbry/browser/adapter/InlineChannelSpinnerAdapter.java b/app/src/main/java/io/lbry/browser/adapter/InlineChannelSpinnerAdapter.java index 41932afd..95a8ddda 100644 --- a/app/src/main/java/io/lbry/browser/adapter/InlineChannelSpinnerAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/InlineChannelSpinnerAdapter.java @@ -1,12 +1,10 @@ package io.lbry.browser.adapter; import android.content.Context; -import android.database.DataSetObserver; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; -import android.widget.SpinnerAdapter; import android.widget.TextView; import java.util.ArrayList; diff --git a/app/src/main/java/io/lbry/browser/adapter/InviteeListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/InviteeListAdapter.java index af1e59fd..b23604de 100644 --- a/app/src/main/java/io/lbry/browser/adapter/InviteeListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/InviteeListAdapter.java @@ -1,9 +1,7 @@ package io.lbry.browser.adapter; import android.content.Context; -import android.content.Intent; import android.graphics.Typeface; -import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -11,16 +9,11 @@ import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; -import java.text.DecimalFormat; -import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.List; import io.lbry.browser.R; import io.lbry.browser.model.lbryinc.Invitee; -import io.lbry.browser.utils.Helper; -import io.lbry.browser.utils.LbryUri; -import lombok.Setter; public class InviteeListAdapter extends RecyclerView.Adapter { diff --git a/app/src/main/java/io/lbry/browser/adapter/LanguageSpinnerAdapter.java b/app/src/main/java/io/lbry/browser/adapter/LanguageSpinnerAdapter.java index 434f4e51..fa23e955 100644 --- a/app/src/main/java/io/lbry/browser/adapter/LanguageSpinnerAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/LanguageSpinnerAdapter.java @@ -10,7 +10,6 @@ import android.widget.TextView; import androidx.annotation.NonNull; import io.lbry.browser.R; -import io.lbry.browser.model.Claim; import io.lbry.browser.model.Language; import io.lbry.browser.utils.Predefined; diff --git a/app/src/main/java/io/lbry/browser/adapter/LicenseSpinnerAdapter.java b/app/src/main/java/io/lbry/browser/adapter/LicenseSpinnerAdapter.java index 62a808ce..9b8a3887 100644 --- a/app/src/main/java/io/lbry/browser/adapter/LicenseSpinnerAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/LicenseSpinnerAdapter.java @@ -10,7 +10,6 @@ import android.widget.TextView; import androidx.annotation.NonNull; import io.lbry.browser.R; -import io.lbry.browser.model.Language; import io.lbry.browser.model.License; import io.lbry.browser.utils.Predefined; diff --git a/app/src/main/java/io/lbry/browser/adapter/NavigationMenuAdapter.java b/app/src/main/java/io/lbry/browser/adapter/NavigationMenuAdapter.java index 0106aaf3..00dd7449 100644 --- a/app/src/main/java/io/lbry/browser/adapter/NavigationMenuAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/NavigationMenuAdapter.java @@ -2,10 +2,8 @@ package io.lbry.browser.adapter; import android.content.Context; import android.view.LayoutInflater; -import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; -import android.widget.ImageView; import android.widget.TextView; import androidx.recyclerview.widget.RecyclerView; @@ -17,7 +15,6 @@ import io.lbry.browser.R; import io.lbry.browser.model.NavMenuItem; import io.lbry.browser.ui.controls.SolidIconView; import io.lbry.browser.utils.Helper; -import lombok.Getter; import lombok.Setter; public class NavigationMenuAdapter extends RecyclerView.Adapter { diff --git a/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java b/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java index 71f8f869..35200790 100644 --- a/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java +++ b/app/src/main/java/io/lbry/browser/adapter/NotificationListAdapter.java @@ -14,12 +14,10 @@ import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; -import com.google.android.material.snackbar.Snackbar; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; -import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import java.util.TimeZone; @@ -34,7 +32,6 @@ import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; -import lombok.ToString; @Data @EqualsAndHashCode(callSuper = false) diff --git a/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java b/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java index 5fc4aea9..7c4d7c0c 100644 --- a/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java +++ b/app/src/main/java/io/lbry/browser/data/DatabaseHelper.java @@ -6,7 +6,6 @@ import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.math.BigDecimal; -import java.sql.SQLInput; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; diff --git a/app/src/main/java/io/lbry/browser/dialog/CreateSupportDialogFragment.java b/app/src/main/java/io/lbry/browser/dialog/CreateSupportDialogFragment.java index 5539dcb6..46c55097 100644 --- a/app/src/main/java/io/lbry/browser/dialog/CreateSupportDialogFragment.java +++ b/app/src/main/java/io/lbry/browser/dialog/CreateSupportDialogFragment.java @@ -13,7 +13,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.CompoundButton; import android.widget.ProgressBar; -import android.widget.Switch; import android.widget.TextView; import androidx.appcompat.widget.AppCompatSpinner; @@ -41,7 +40,6 @@ import io.lbry.browser.tasks.claim.ClaimListTask; import io.lbry.browser.tasks.wallet.SupportCreateTask; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; -import lombok.Setter; public class CreateSupportDialogFragment extends BottomSheetDialogFragment implements WalletBalanceListener { public static final String TAG = "CreateSupportDialog"; diff --git a/app/src/main/java/io/lbry/browser/dialog/DiscoverDialogFragment.java b/app/src/main/java/io/lbry/browser/dialog/DiscoverDialogFragment.java index 927ebda1..d5d4308c 100644 --- a/app/src/main/java/io/lbry/browser/dialog/DiscoverDialogFragment.java +++ b/app/src/main/java/io/lbry/browser/dialog/DiscoverDialogFragment.java @@ -5,7 +5,6 @@ import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.ProgressBar; import androidx.annotation.NonNull; import androidx.recyclerview.widget.GridLayoutManager; diff --git a/app/src/main/java/io/lbry/browser/dialog/RepostClaimDialogFragment.java b/app/src/main/java/io/lbry/browser/dialog/RepostClaimDialogFragment.java index 231060b5..4abf1280 100644 --- a/app/src/main/java/io/lbry/browser/dialog/RepostClaimDialogFragment.java +++ b/app/src/main/java/io/lbry/browser/dialog/RepostClaimDialogFragment.java @@ -37,7 +37,6 @@ import io.lbry.browser.tasks.claim.StreamRepostTask; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; import io.lbry.browser.utils.LbryUri; -import lombok.Setter; public class RepostClaimDialogFragment extends BottomSheetDialogFragment implements WalletBalanceListener { public static final String TAG = "RepostClaimDialog"; diff --git a/app/src/main/java/io/lbry/browser/model/Claim.java b/app/src/main/java/io/lbry/browser/model/Claim.java index 22794d8f..88dd197e 100644 --- a/app/src/main/java/io/lbry/browser/model/Claim.java +++ b/app/src/main/java/io/lbry/browser/model/Claim.java @@ -15,7 +15,6 @@ import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.stream.Stream; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.LbryUri; diff --git a/app/src/main/java/io/lbry/browser/model/ClaimSearchCacheValue.java b/app/src/main/java/io/lbry/browser/model/ClaimSearchCacheValue.java index 54bc1071..8de1d8e0 100644 --- a/app/src/main/java/io/lbry/browser/model/ClaimSearchCacheValue.java +++ b/app/src/main/java/io/lbry/browser/model/ClaimSearchCacheValue.java @@ -1,11 +1,9 @@ package io.lbry.browser.model; import java.util.ArrayList; -import java.util.Date; import java.util.List; import lombok.Getter; -import lombok.Setter; public class ClaimSearchCacheValue { @Getter diff --git a/app/src/main/java/io/lbry/browser/model/Comment.java b/app/src/main/java/io/lbry/browser/model/Comment.java index 2e9a9ae1..00375ef7 100644 --- a/app/src/main/java/io/lbry/browser/model/Comment.java +++ b/app/src/main/java/io/lbry/browser/model/Comment.java @@ -3,7 +3,6 @@ package io.lbry.browser.model; import org.json.JSONException; import org.json.JSONObject; -import java.lang.reflect.Array; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/io/lbry/browser/model/NavMenuItem.java b/app/src/main/java/io/lbry/browser/model/NavMenuItem.java index 1059d004..492b197c 100644 --- a/app/src/main/java/io/lbry/browser/model/NavMenuItem.java +++ b/app/src/main/java/io/lbry/browser/model/NavMenuItem.java @@ -2,8 +2,6 @@ package io.lbry.browser.model; import android.content.Context; -import androidx.core.content.res.ResourcesCompat; - import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/io/lbry/browser/model/ViewHistory.java b/app/src/main/java/io/lbry/browser/model/ViewHistory.java index ea668615..a7d92ff2 100644 --- a/app/src/main/java/io/lbry/browser/model/ViewHistory.java +++ b/app/src/main/java/io/lbry/browser/model/ViewHistory.java @@ -3,9 +3,7 @@ package io.lbry.browser.model; import java.math.BigDecimal; import java.util.Date; -import io.lbry.browser.exceptions.LbryUriException; import io.lbry.browser.utils.LbryUri; -import io.lbry.browser.utils.Lbryio; import lombok.Data; @Data diff --git a/app/src/main/java/io/lbry/browser/model/lbryinc/Reward.java b/app/src/main/java/io/lbry/browser/model/lbryinc/Reward.java index 67f46db6..ebaea7eb 100644 --- a/app/src/main/java/io/lbry/browser/model/lbryinc/Reward.java +++ b/app/src/main/java/io/lbry/browser/model/lbryinc/Reward.java @@ -9,7 +9,6 @@ import org.json.JSONObject; import java.lang.reflect.Type; -import io.lbry.browser.model.Claim; import io.lbry.browser.utils.Helper; import lombok.Data; diff --git a/app/src/main/java/io/lbry/browser/tasks/CommentCreateTask.java b/app/src/main/java/io/lbry/browser/tasks/CommentCreateTask.java index 8465bfed..e63c8134 100644 --- a/app/src/main/java/io/lbry/browser/tasks/CommentCreateTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/CommentCreateTask.java @@ -7,11 +7,7 @@ import org.json.JSONException; import org.json.JSONObject; import java.io.IOException; -import java.math.BigDecimal; -import java.text.DecimalFormat; -import java.text.DecimalFormatSymbols; import java.util.HashMap; -import java.util.Locale; import java.util.Map; import java.util.concurrent.TimeUnit; @@ -19,7 +15,6 @@ import io.lbry.browser.exceptions.ApiCallException; import io.lbry.browser.model.Comment; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; -import io.lbry.browser.utils.Lbryio; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; diff --git a/app/src/main/java/io/lbry/browser/tasks/LoadTagsTask.java b/app/src/main/java/io/lbry/browser/tasks/LoadTagsTask.java index fa95c52f..a8f5f859 100644 --- a/app/src/main/java/io/lbry/browser/tasks/LoadTagsTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/LoadTagsTask.java @@ -4,18 +4,12 @@ import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.os.AsyncTask; -import android.view.View; -import android.widget.ProgressBar; import java.util.List; import io.lbry.browser.MainActivity; import io.lbry.browser.data.DatabaseHelper; -import io.lbry.browser.exceptions.LbryRequestException; -import io.lbry.browser.exceptions.LbryResponseException; -import io.lbry.browser.model.Claim; import io.lbry.browser.model.Tag; -import io.lbry.browser.utils.Helper; public class LoadTagsTask extends AsyncTask> { private final Context context; diff --git a/app/src/main/java/io/lbry/browser/tasks/MergeSubscriptionsTask.java b/app/src/main/java/io/lbry/browser/tasks/MergeSubscriptionsTask.java index b2476f89..588e0dcb 100644 --- a/app/src/main/java/io/lbry/browser/tasks/MergeSubscriptionsTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/MergeSubscriptionsTask.java @@ -4,7 +4,6 @@ import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.os.AsyncTask; -import android.util.Log; import org.json.JSONArray; import org.json.JSONException; @@ -17,14 +16,11 @@ import java.util.Map; import io.lbry.browser.MainActivity; import io.lbry.browser.data.DatabaseHelper; -import io.lbry.browser.exceptions.LbryUriException; import io.lbry.browser.exceptions.LbryioRequestException; import io.lbry.browser.exceptions.LbryioResponseException; import io.lbry.browser.model.lbryinc.Subscription; -import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.LbryUri; import io.lbry.browser.utils.Lbryio; -import okhttp3.Response; // background task to create a diff of local and remote subscriptions and try to merge public class MergeSubscriptionsTask extends AsyncTask> { diff --git a/app/src/main/java/io/lbry/browser/tasks/ReadTextFileTask.java b/app/src/main/java/io/lbry/browser/tasks/ReadTextFileTask.java index e9eb6bf1..d18b3ef1 100644 --- a/app/src/main/java/io/lbry/browser/tasks/ReadTextFileTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/ReadTextFileTask.java @@ -4,11 +4,8 @@ import android.os.AsyncTask; import java.io.BufferedReader; import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; -import java.nio.Buffer; import io.lbry.browser.utils.Helper; diff --git a/app/src/main/java/io/lbry/browser/tasks/claim/AbandonChannelTask.java b/app/src/main/java/io/lbry/browser/tasks/claim/AbandonChannelTask.java index 8cd5987c..561c907e 100644 --- a/app/src/main/java/io/lbry/browser/tasks/claim/AbandonChannelTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/claim/AbandonChannelTask.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Map; import io.lbry.browser.exceptions.ApiCallException; -import io.lbry.browser.tasks.GenericTaskHandler; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; diff --git a/app/src/main/java/io/lbry/browser/tasks/claim/AbandonStreamTask.java b/app/src/main/java/io/lbry/browser/tasks/claim/AbandonStreamTask.java index 162a9b6d..00f0b8a1 100644 --- a/app/src/main/java/io/lbry/browser/tasks/claim/AbandonStreamTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/claim/AbandonStreamTask.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Map; import io.lbry.browser.exceptions.ApiCallException; -import io.lbry.browser.tasks.GenericTaskHandler; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; diff --git a/app/src/main/java/io/lbry/browser/tasks/file/BulkDeleteFilesTask.java b/app/src/main/java/io/lbry/browser/tasks/file/BulkDeleteFilesTask.java index f696d65a..0cf778ba 100644 --- a/app/src/main/java/io/lbry/browser/tasks/file/BulkDeleteFilesTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/file/BulkDeleteFilesTask.java @@ -7,7 +7,6 @@ import java.util.List; import java.util.Map; import io.lbry.browser.exceptions.ApiCallException; -import io.lbry.browser.tasks.GenericTaskHandler; import io.lbry.browser.utils.Lbry; // Just run delete on the specified claim IDs (no need for a handler) diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/AndroidPurchaseTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/AndroidPurchaseTask.java index 46fa0df8..8bf81d49 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/AndroidPurchaseTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/AndroidPurchaseTask.java @@ -15,12 +15,10 @@ import java.lang.reflect.Type; import java.util.HashMap; import java.util.Map; -import io.lbry.browser.MainActivity; import io.lbry.browser.model.lbryinc.RewardVerified; import io.lbry.browser.tasks.RewardVerifiedHandler; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbryio; -import okhttp3.Response; public class AndroidPurchaseTask extends AsyncTask { private final Context context; diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/ChannelSubscribeTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/ChannelSubscribeTask.java index f271d36b..d1ee033c 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/ChannelSubscribeTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/ChannelSubscribeTask.java @@ -13,7 +13,6 @@ import io.lbry.browser.data.DatabaseHelper; import io.lbry.browser.exceptions.LbryioRequestException; import io.lbry.browser.exceptions.LbryioResponseException; import io.lbry.browser.model.lbryinc.Subscription; -import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbryio; public class ChannelSubscribeTask extends AsyncTask { diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/ClaimRewardTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/ClaimRewardTask.java index 4c4fddde..37c4e994 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/ClaimRewardTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/ClaimRewardTask.java @@ -9,7 +9,6 @@ import org.json.JSONException; import org.json.JSONObject; import java.text.DecimalFormat; -import java.util.ArrayList; import java.util.HashMap; import java.util.Map; diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogFileViewTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogFileViewTask.java index 0d2d5a07..f3c785ae 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogFileViewTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogFileViewTask.java @@ -2,17 +2,14 @@ package io.lbry.browser.tasks.lbryinc; import android.os.AsyncTask; -import java.io.IOException; import java.util.HashMap; import java.util.Map; -import java.util.concurrent.Executor; import io.lbry.browser.exceptions.LbryioRequestException; import io.lbry.browser.exceptions.LbryioResponseException; import io.lbry.browser.model.Claim; import io.lbry.browser.tasks.GenericTaskHandler; import io.lbry.browser.utils.Lbryio; -import okhttp3.Response; public class LogFileViewTask extends AsyncTask { private final String uri; diff --git a/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogPublishTask.java b/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogPublishTask.java index c9594999..b92d8b29 100644 --- a/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogPublishTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/lbryinc/LogPublishTask.java @@ -2,7 +2,6 @@ package io.lbry.browser.tasks.lbryinc; import android.os.AsyncTask; -import java.io.IOException; import java.util.HashMap; import java.util.Map; @@ -10,7 +9,6 @@ import io.lbry.browser.exceptions.LbryioRequestException; import io.lbry.browser.exceptions.LbryioResponseException; import io.lbry.browser.model.Claim; import io.lbry.browser.utils.Lbryio; -import okhttp3.Response; public class LogPublishTask extends AsyncTask { private final Claim claimResult; diff --git a/app/src/main/java/io/lbry/browser/tasks/localdata/FetchViewHistoryTask.java b/app/src/main/java/io/lbry/browser/tasks/localdata/FetchViewHistoryTask.java index 6c20bc87..907809ac 100644 --- a/app/src/main/java/io/lbry/browser/tasks/localdata/FetchViewHistoryTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/localdata/FetchViewHistoryTask.java @@ -10,7 +10,6 @@ import java.util.Date; import java.util.List; import io.lbry.browser.data.DatabaseHelper; -import io.lbry.browser.model.UrlSuggestion; import io.lbry.browser.model.ViewHistory; import io.lbry.browser.utils.Helper; diff --git a/app/src/main/java/io/lbry/browser/tasks/localdata/LoadGalleryItemsTask.java b/app/src/main/java/io/lbry/browser/tasks/localdata/LoadGalleryItemsTask.java index 87e4e067..6b8cc258 100644 --- a/app/src/main/java/io/lbry/browser/tasks/localdata/LoadGalleryItemsTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/localdata/LoadGalleryItemsTask.java @@ -6,7 +6,6 @@ import android.database.Cursor; import android.database.sqlite.SQLiteException; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.net.Uri; import android.os.AsyncTask; import android.provider.MediaStore; import android.util.Log; diff --git a/app/src/main/java/io/lbry/browser/tasks/localdata/SaveUrlHistoryTask.java b/app/src/main/java/io/lbry/browser/tasks/localdata/SaveUrlHistoryTask.java index 5f51140a..cd57d858 100644 --- a/app/src/main/java/io/lbry/browser/tasks/localdata/SaveUrlHistoryTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/localdata/SaveUrlHistoryTask.java @@ -1,13 +1,10 @@ package io.lbry.browser.tasks.localdata; -import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; -import io.lbry.browser.MainActivity; import io.lbry.browser.data.DatabaseHelper; import io.lbry.browser.model.UrlSuggestion; -import io.lbry.browser.tasks.GenericTaskHandler; public class SaveUrlHistoryTask extends AsyncTask { private final DatabaseHelper dbHelper; diff --git a/app/src/main/java/io/lbry/browser/tasks/verification/EmailNewTask.java b/app/src/main/java/io/lbry/browser/tasks/verification/EmailNewTask.java index b1afbd1f..cfcc5d8f 100644 --- a/app/src/main/java/io/lbry/browser/tasks/verification/EmailNewTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/verification/EmailNewTask.java @@ -3,8 +3,6 @@ package io.lbry.browser.tasks.verification; import android.os.AsyncTask; import android.view.View; -import org.json.JSONObject; - import java.util.HashMap; import java.util.Map; diff --git a/app/src/main/java/io/lbry/browser/tasks/verification/TwitterAccessTokenTask.java b/app/src/main/java/io/lbry/browser/tasks/verification/TwitterAccessTokenTask.java index 9b558648..1dbb700c 100644 --- a/app/src/main/java/io/lbry/browser/tasks/verification/TwitterAccessTokenTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/verification/TwitterAccessTokenTask.java @@ -2,15 +2,9 @@ package io.lbry.browser.tasks.verification; import android.os.AsyncTask; -import com.google.api.client.auth.oauth.OAuthHmacSigner; -import com.google.api.client.auth.oauth.OAuthParameters; -import com.google.api.client.http.GenericUrl; - -import io.lbry.browser.VerificationActivity; import io.lbry.browser.model.TwitterOauth; import io.lbry.browser.tasks.TwitterOauthHandler; import io.lbry.browser.utils.Helper; -import okhttp3.HttpUrl; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; diff --git a/app/src/main/java/io/lbry/browser/tasks/verification/TwitterRequestTokenTask.java b/app/src/main/java/io/lbry/browser/tasks/verification/TwitterRequestTokenTask.java index d5418f38..cb74905f 100644 --- a/app/src/main/java/io/lbry/browser/tasks/verification/TwitterRequestTokenTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/verification/TwitterRequestTokenTask.java @@ -1,6 +1,5 @@ package io.lbry.browser.tasks.verification; -import android.net.Uri; import android.os.AsyncTask; import android.util.Base64; @@ -10,7 +9,6 @@ import com.google.api.client.http.GenericUrl; import java.nio.charset.StandardCharsets; -import io.lbry.browser.VerificationActivity; import io.lbry.browser.model.TwitterOauth; import io.lbry.browser.tasks.TwitterOauthHandler; import io.lbry.browser.utils.Helper; diff --git a/app/src/main/java/io/lbry/browser/tasks/wallet/SyncApplyTask.java b/app/src/main/java/io/lbry/browser/tasks/wallet/SyncApplyTask.java index 4e349a37..a089d3ef 100644 --- a/app/src/main/java/io/lbry/browser/tasks/wallet/SyncApplyTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/wallet/SyncApplyTask.java @@ -3,7 +3,6 @@ package io.lbry.browser.tasks.wallet; import android.os.AsyncTask; import android.view.View; -import org.json.JSONException; import org.json.JSONObject; import java.util.HashMap; diff --git a/app/src/main/java/io/lbry/browser/tasks/wallet/UnlockTipsTask.java b/app/src/main/java/io/lbry/browser/tasks/wallet/UnlockTipsTask.java index c9a17bf8..cb344c80 100644 --- a/app/src/main/java/io/lbry/browser/tasks/wallet/UnlockTipsTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/wallet/UnlockTipsTask.java @@ -12,7 +12,6 @@ import java.util.List; import java.util.Map; import io.lbry.browser.exceptions.ApiCallException; -import io.lbry.browser.model.WalletBalance; import io.lbry.browser.tasks.GenericTaskHandler; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; diff --git a/app/src/main/java/io/lbry/browser/tasks/wallet/WalletAddressUnusedTask.java b/app/src/main/java/io/lbry/browser/tasks/wallet/WalletAddressUnusedTask.java index 9bbda172..676bdbe6 100644 --- a/app/src/main/java/io/lbry/browser/tasks/wallet/WalletAddressUnusedTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/wallet/WalletAddressUnusedTask.java @@ -2,13 +2,7 @@ package io.lbry.browser.tasks.wallet; import android.os.AsyncTask; -import org.json.JSONException; -import org.json.JSONObject; - -import java.math.BigDecimal; - import io.lbry.browser.exceptions.ApiCallException; -import io.lbry.browser.model.WalletBalance; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; diff --git a/app/src/main/java/io/lbry/browser/tasks/wallet/WalletBalanceTask.java b/app/src/main/java/io/lbry/browser/tasks/wallet/WalletBalanceTask.java index 90702499..e504f6d8 100644 --- a/app/src/main/java/io/lbry/browser/tasks/wallet/WalletBalanceTask.java +++ b/app/src/main/java/io/lbry/browser/tasks/wallet/WalletBalanceTask.java @@ -4,11 +4,8 @@ import android.os.AsyncTask; import org.json.JSONObject; -import java.math.BigDecimal; - import io.lbry.browser.exceptions.ApiCallException; import io.lbry.browser.model.WalletBalance; -import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; public class WalletBalanceTask extends AsyncTask { diff --git a/app/src/main/java/io/lbry/browser/ui/BaseFragment.java b/app/src/main/java/io/lbry/browser/ui/BaseFragment.java index 3970e582..9cbf3132 100644 --- a/app/src/main/java/io/lbry/browser/ui/BaseFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/BaseFragment.java @@ -22,11 +22,9 @@ import io.lbry.browser.MainActivity; import io.lbry.browser.R; import io.lbry.browser.adapter.InlineChannelSpinnerAdapter; import io.lbry.browser.model.Claim; -import io.lbry.browser.model.WalletBalance; import io.lbry.browser.tasks.claim.ChannelCreateUpdateTask; import io.lbry.browser.tasks.claim.ClaimResultHandler; import io.lbry.browser.tasks.lbryinc.LogPublishTask; -import io.lbry.browser.ui.wallet.RewardsFragment; import io.lbry.browser.utils.Helper; import io.lbry.browser.utils.Lbry; import io.lbry.browser.utils.LbryAnalytics; diff --git a/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java b/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java index c32d0f05..10dea146 100644 --- a/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/channel/ChannelCommentsFragment.java @@ -1,7 +1,6 @@ package io.lbry.browser.ui.channel; import android.content.Context; -import android.content.DialogInterface; import android.os.AsyncTask; import android.os.Bundle; import android.text.Editable; @@ -16,7 +15,6 @@ import android.widget.ProgressBar; import android.widget.TextView; import androidx.annotation.NonNull; -import androidx.appcompat.app.AlertDialog; import androidx.appcompat.widget.AppCompatSpinner; import androidx.core.widget.NestedScrollView; import androidx.fragment.app.Fragment; diff --git a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java index ccb3a609..36899697 100644 --- a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFormFragment.java @@ -3,7 +3,6 @@ package io.lbry.browser.ui.channel; import android.Manifest; import android.content.Context; import android.content.Intent; -import android.graphics.Color; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; @@ -16,7 +15,6 @@ import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; -import androidx.appcompat.app.ActionBar; import androidx.core.content.ContextCompat; import androidx.core.widget.NestedScrollView; import androidx.recyclerview.widget.RecyclerView; diff --git a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFragment.java b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFragment.java index c6035c3b..41626b96 100644 --- a/app/src/main/java/io/lbry/browser/ui/channel/ChannelFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/channel/ChannelFragment.java @@ -26,7 +26,6 @@ import com.google.android.material.snackbar.Snackbar; import com.google.android.material.tabs.TabLayout; import com.google.android.material.tabs.TabLayoutMediator; -import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.Arrays; diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java index eb771923..19bfab27 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/FileViewFragment.java @@ -12,7 +12,6 @@ import android.graphics.Color; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; -import android.os.Handler; import android.text.Editable; import android.text.TextWatcher; import android.text.format.DateUtils; @@ -83,7 +82,6 @@ import org.json.JSONObject; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; -import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.NumberFormat; import java.util.ArrayList; diff --git a/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java b/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java index 49686b7c..870df8e2 100644 --- a/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/findcontent/ShuffleFragment.java @@ -21,7 +21,6 @@ import androidx.annotation.NonNull; import androidx.preference.PreferenceManager; import com.google.android.exoplayer2.C; -import com.google.android.exoplayer2.PlaybackParameters; import com.google.android.exoplayer2.Player; import com.google.android.exoplayer2.SimpleExoPlayer; import com.google.android.exoplayer2.audio.AudioAttributes; diff --git a/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java b/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java index 8091014f..b47568ed 100644 --- a/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/other/AboutFragment.java @@ -14,9 +14,7 @@ import android.view.View; import android.view.ViewGroup; import android.widget.TextView; -import androidx.appcompat.app.ActionBar; import androidx.core.content.FileProvider; -import androidx.preference.PreferenceManager; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; diff --git a/app/src/main/java/io/lbry/browser/ui/other/SettingsFragment.java b/app/src/main/java/io/lbry/browser/ui/other/SettingsFragment.java index d23c12a5..bfa00def 100644 --- a/app/src/main/java/io/lbry/browser/ui/other/SettingsFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/other/SettingsFragment.java @@ -8,7 +8,6 @@ import android.text.InputType; import android.widget.EditText; import androidx.annotation.NonNull; -import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatDelegate; import androidx.preference.EditTextPreference; import androidx.preference.PreferenceFragmentCompat; diff --git a/app/src/main/java/io/lbry/browser/ui/publish/PublishFormFragment.java b/app/src/main/java/io/lbry/browser/ui/publish/PublishFormFragment.java index 0f08a1f7..3d8e2a51 100644 --- a/app/src/main/java/io/lbry/browser/ui/publish/PublishFormFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/publish/PublishFormFragment.java @@ -25,10 +25,8 @@ import android.widget.ProgressBar; import android.widget.TextView; import androidx.annotation.NonNull; -import androidx.appcompat.app.ActionBar; import androidx.appcompat.widget.AppCompatSpinner; import androidx.cardview.widget.CardView; -import androidx.core.content.ContextCompat; import androidx.core.widget.NestedScrollView; import androidx.recyclerview.widget.RecyclerView; @@ -52,7 +50,6 @@ import org.json.JSONObject; import java.io.File; import java.io.FileOutputStream; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -77,7 +74,6 @@ import io.lbry.browser.model.License; import io.lbry.browser.model.NavMenuItem; import io.lbry.browser.model.Tag; import io.lbry.browser.model.WalletBalance; -import io.lbry.browser.tasks.claim.ChannelCreateUpdateTask; import io.lbry.browser.tasks.UpdateSuggestedTagsTask; import io.lbry.browser.tasks.UploadImageTask; import io.lbry.browser.tasks.claim.ClaimListResultHandler; diff --git a/app/src/main/java/io/lbry/browser/ui/publish/PublishesFragment.java b/app/src/main/java/io/lbry/browser/ui/publish/PublishesFragment.java index 09ef335b..a8729879 100644 --- a/app/src/main/java/io/lbry/browser/ui/publish/PublishesFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/publish/PublishesFragment.java @@ -12,7 +12,6 @@ import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ProgressBar; -import android.widget.TextView; import androidx.annotation.NonNull; import androidx.appcompat.app.AlertDialog; @@ -25,9 +24,7 @@ import com.google.android.material.snackbar.Snackbar; import java.util.ArrayList; import java.util.Arrays; -import java.util.HashMap; import java.util.List; -import java.util.Map; import io.lbry.browser.MainActivity; import io.lbry.browser.R; diff --git a/app/src/main/java/io/lbry/browser/ui/verification/WalletVerificationFragment.java b/app/src/main/java/io/lbry/browser/ui/verification/WalletVerificationFragment.java index 3a16ee3e..db90c8b3 100644 --- a/app/src/main/java/io/lbry/browser/ui/verification/WalletVerificationFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/verification/WalletVerificationFragment.java @@ -23,7 +23,6 @@ import io.lbry.browser.MainActivity; import io.lbry.browser.R; import io.lbry.browser.VerificationActivity; import io.lbry.browser.listener.SdkStatusListener; -import io.lbry.browser.listener.SignInListener; import io.lbry.browser.listener.WalletSyncListener; import io.lbry.browser.model.WalletSync; import io.lbry.browser.tasks.wallet.DefaultSyncTaskHandler; diff --git a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java index 27d00f54..1a7ff933 100644 --- a/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/wallet/InvitesFragment.java @@ -3,7 +3,6 @@ package io.lbry.browser.ui.wallet; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; -import android.graphics.Color; import android.os.AsyncTask; import android.os.Bundle; import android.text.Editable; @@ -25,11 +24,9 @@ import com.google.android.material.snackbar.Snackbar; import com.google.android.material.textfield.TextInputEditText; import com.google.android.material.textfield.TextInputLayout; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; -import io.lbry.browser.BuildConfig; import io.lbry.browser.MainActivity; import io.lbry.browser.R; import io.lbry.browser.adapter.InlineChannelSpinnerAdapter; @@ -42,9 +39,6 @@ import io.lbry.browser.model.lbryinc.Invitee; import io.lbry.browser.tasks.claim.ClaimListResultHandler; import io.lbry.browser.tasks.claim.ClaimListTask; import io.lbry.browser.tasks.GenericTaskHandler; -import io.lbry.browser.tasks.claim.ChannelCreateUpdateTask; -import io.lbry.browser.tasks.claim.ClaimResultHandler; -import io.lbry.browser.tasks.lbryinc.LogPublishTask; import io.lbry.browser.tasks.lbryinc.FetchInviteStatusTask; import io.lbry.browser.tasks.lbryinc.FetchReferralCodeTask; import io.lbry.browser.tasks.lbryinc.InviteByEmailTask; diff --git a/app/src/main/java/io/lbry/browser/ui/wallet/TransactionHistoryFragment.java b/app/src/main/java/io/lbry/browser/ui/wallet/TransactionHistoryFragment.java index 13a23009..7c0f6cf4 100644 --- a/app/src/main/java/io/lbry/browser/ui/wallet/TransactionHistoryFragment.java +++ b/app/src/main/java/io/lbry/browser/ui/wallet/TransactionHistoryFragment.java @@ -9,7 +9,6 @@ import android.view.ViewGroup; import android.widget.ProgressBar; import androidx.annotation.NonNull; -import androidx.appcompat.app.ActionBar; import androidx.core.content.ContextCompat; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; diff --git a/app/src/main/java/io/lbry/browser/utils/ExoplayerAudioRenderer.java b/app/src/main/java/io/lbry/browser/utils/ExoplayerAudioRenderer.java index 00bb1021..9fddfef2 100644 --- a/app/src/main/java/io/lbry/browser/utils/ExoplayerAudioRenderer.java +++ b/app/src/main/java/io/lbry/browser/utils/ExoplayerAudioRenderer.java @@ -3,19 +3,11 @@ package io.lbry.browser.utils; import android.content.Context; import android.os.Handler; -import androidx.annotation.Nullable; - import com.google.android.exoplayer2.DefaultRenderersFactory; -import com.google.android.exoplayer2.PlaybackParameters; import com.google.android.exoplayer2.Renderer; -import com.google.android.exoplayer2.audio.AudioCapabilities; -import com.google.android.exoplayer2.audio.AudioProcessor; import com.google.android.exoplayer2.audio.AudioRendererEventListener; import com.google.android.exoplayer2.audio.AudioSink; -import com.google.android.exoplayer2.audio.DefaultAudioSink; import com.google.android.exoplayer2.audio.TeeAudioProcessor; -import com.google.android.exoplayer2.drm.DrmSessionManager; -import com.google.android.exoplayer2.drm.FrameworkMediaCrypto; import com.google.android.exoplayer2.mediacodec.MediaCodecSelector; import java.util.ArrayList; diff --git a/app/src/main/java/io/lbry/browser/utils/Lbry.java b/app/src/main/java/io/lbry/browser/utils/Lbry.java index 940bb032..b727948f 100644 --- a/app/src/main/java/io/lbry/browser/utils/Lbry.java +++ b/app/src/main/java/io/lbry/browser/utils/Lbry.java @@ -14,7 +14,6 @@ import java.security.NoSuchAlgorithmException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; -import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; @@ -34,9 +33,6 @@ import io.lbry.browser.model.Tag; import io.lbry.browser.model.Transaction; import io.lbry.browser.model.WalletBalance; import io.lbry.lbrysdk.Utils; -import kotlin.Pair; -import okhttp3.CacheControl; -import okhttp3.Headers; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; diff --git a/app/src/main/java/io/lbry/browser/utils/Lbryio.java b/app/src/main/java/io/lbry/browser/utils/Lbryio.java index 036eb3f4..ad945630 100644 --- a/app/src/main/java/io/lbry/browser/utils/Lbryio.java +++ b/app/src/main/java/io/lbry/browser/utils/Lbryio.java @@ -29,7 +29,6 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; -import io.lbry.browser.BuildConfig; import io.lbry.browser.MainActivity; import io.lbry.browser.exceptions.AuthTokenInvalidatedException; import io.lbry.browser.exceptions.LbryioRequestException; diff --git a/app/src/main/java/io/lbry/browser/utils/Predefined.java b/app/src/main/java/io/lbry/browser/utils/Predefined.java index aacc42fc..f8443b96 100644 --- a/app/src/main/java/io/lbry/browser/utils/Predefined.java +++ b/app/src/main/java/io/lbry/browser/utils/Predefined.java @@ -2,7 +2,6 @@ package io.lbry.browser.utils; import java.util.Arrays; import java.util.List; -import java.util.Map; import io.lbry.browser.R; import io.lbry.browser.model.Language;