diff --git a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java index 2f5283b..3813360 100644 --- a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java +++ b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java @@ -49,7 +49,6 @@ import android.view.View; import android.view.View.OnClickListener; import android.view.View.OnFocusChangeListener; import android.view.View.OnKeyListener; -import android.view.View.OnLongClickListener; import android.view.View.OnTouchListener; import android.view.ViewConfiguration; import android.view.ViewGroup; diff --git a/app/src/main/java/acr/browser/lightning/app/BrowserApp.java b/app/src/main/java/acr/browser/lightning/app/BrowserApp.java index ebbae02..d7679c5 100644 --- a/app/src/main/java/acr/browser/lightning/app/BrowserApp.java +++ b/app/src/main/java/acr/browser/lightning/app/BrowserApp.java @@ -31,7 +31,6 @@ public class BrowserApp extends Application { @Nullable private static AppComponent sAppComponent; private static final Executor mIOThread = Executors.newSingleThreadExecutor(); - private static final Executor mTaskThread = Executors.newCachedThreadPool(); @Inject PreferenceManager mPreferenceManager; diff --git a/app/src/main/java/acr/browser/lightning/database/HistoryItem.java b/app/src/main/java/acr/browser/lightning/database/HistoryItem.java index 137f295..b439b1b 100644 --- a/app/src/main/java/acr/browser/lightning/database/HistoryItem.java +++ b/app/src/main/java/acr/browser/lightning/database/HistoryItem.java @@ -30,14 +30,6 @@ public class HistoryItem implements Comparable { public HistoryItem() {} - public HistoryItem(@NonNull HistoryItem item) { - this.mUrl = item.mUrl; - this.mTitle = item.mTitle; - this.mFolder = item.mFolder; - this.mOrder = item.mOrder; - this.mIsFolder = item.mIsFolder; - } - public HistoryItem(@NonNull String url, @NonNull String title) { Preconditions.checkNonNull(url); Preconditions.checkNonNull(title); diff --git a/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java b/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java index fac64af..f3d6ecc 100644 --- a/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java +++ b/app/src/main/java/acr/browser/lightning/fragment/PrivacySettingsFragment.java @@ -8,8 +8,6 @@ import android.app.Dialog; import android.content.DialogInterface; import android.os.Build; import android.os.Bundle; -import android.os.Handler; -import android.os.Message; import android.preference.CheckBoxPreference; import android.preference.Preference; import android.support.annotation.NonNull; diff --git a/app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java b/app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java index 77bb8ca..165f8d8 100644 --- a/app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java +++ b/app/src/main/java/acr/browser/lightning/utils/ThemeUtils.java @@ -61,11 +61,6 @@ public class ThemeUtils { return (dark) ? getIconDarkThemeColor(context) : getIconLightThemeColor(context); } - public static void themeImageView(@NonNull ImageView icon, @NonNull Context context, boolean dark) { - int color = dark ? getIconDarkThemeColor(context) : getIconLightThemeColor(context); - icon.setColorFilter(color, PorterDuff.Mode.SRC_IN); - } - @NonNull private static Drawable getVectorDrawable(@NonNull Context context, int drawableId) { Drawable drawable = ContextCompat.getDrawable(context, drawableId); @@ -116,14 +111,6 @@ public class ThemeUtils { return drawable; } - @NonNull - public static ColorDrawable getSelectedBackground(@NonNull Context context, boolean dark) { - @ColorInt final int color = - (dark) ? ContextCompat.getColor(context, R.color.selected_dark) : ContextCompat.getColor( - context, R.color.selected_light); - return new ColorDrawable(color); - } - public static int getThemedTextHintColor(boolean dark) { return 0x80ffffff & (dark ? Color.WHITE : Color.BLACK); } diff --git a/app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java b/app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java index 2aab716..80f40bc 100644 --- a/app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java +++ b/app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java @@ -33,8 +33,6 @@ import acr.browser.lightning.utils.Preconditions; public class LightningChromeClient extends WebChromeClient { - private static final String TAG = LightningChromeClient.class.getSimpleName(); - private static final String[] PERMISSIONS = new String[]{Manifest.permission.ACCESS_FINE_LOCATION}; @NonNull private final Activity mActivity;