Deleting unused code
This commit is contained in:
parent
d7e5a5fbe2
commit
368d71df7d
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -30,14 +30,6 @@ public class HistoryItem implements Comparable<HistoryItem> {
|
||||
|
||||
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);
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user