Remove unnecessary imports, make methods static

This commit is contained in:
Anthony Restaino 2016-03-22 21:16:11 -04:00
parent f05312e915
commit ae6726b290
8 changed files with 3 additions and 11 deletions

View File

@ -18,7 +18,6 @@ import java.util.ArrayList;
import java.util.List;
import javax.inject.Inject;
import javax.inject.Singleton;
import acr.browser.lightning.R;
import acr.browser.lightning.app.BrowserApp;

View File

@ -14,7 +14,6 @@ import javax.inject.Inject;
import acr.browser.lightning.R;
import acr.browser.lightning.activity.TabsManager;
import acr.browser.lightning.app.BrowserApp;
import acr.browser.lightning.bus.BrowserEvents;
import acr.browser.lightning.constant.Constants;
import acr.browser.lightning.controller.UIController;
import acr.browser.lightning.preference.PreferenceManager;

View File

@ -308,7 +308,7 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref
}
@Nullable
private String getTitle(@NonNull Activity activity, @NonNull String packageName) {
private static String getTitle(@NonNull Activity activity, @NonNull String packageName) {
PackageManager pm = activity.getPackageManager();
try {
ApplicationInfo info = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);

View File

@ -656,7 +656,7 @@ public class HorizontalItemAnimator extends SimpleItemAnimator {
dispatchAnimationsFinished();
}
void cancelAll(List<ViewHolder> viewHolders) {
static void cancelAll(List<ViewHolder> viewHolders) {
for (int i = viewHolders.size() - 1; i >= 0; i--) {
ViewCompat.animate(viewHolders.get(i).itemView).cancel();
}

View File

@ -655,7 +655,7 @@ public class VerticalItemAnimator extends SimpleItemAnimator {
dispatchAnimationsFinished();
}
void cancelAll(List<ViewHolder> viewHolders) {
static void cancelAll(List<ViewHolder> viewHolders) {
for (int i = viewHolders.size() - 1; i >= 0; i--) {
ViewCompat.animate(viewHolders.get(i).itemView).cancel();
}

View File

@ -1,7 +1,6 @@
package acr.browser.lightning.view;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
@ -13,7 +12,6 @@ import android.os.Message;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.GeolocationPermissions;
@ -23,11 +21,9 @@ import android.webkit.WebView;
import com.anthonycr.grant.PermissionsManager;
import com.anthonycr.grant.PermissionsResultAction;
import com.squareup.otto.Bus;
import acr.browser.lightning.R;
import acr.browser.lightning.app.BrowserApp;
import acr.browser.lightning.bus.BrowserEvents;
import acr.browser.lightning.controller.UIController;
import acr.browser.lightning.utils.Preconditions;

View File

@ -42,7 +42,6 @@ import javax.inject.Inject;
import acr.browser.lightning.R;
import acr.browser.lightning.app.BrowserApp;
import acr.browser.lightning.bus.BrowserEvents;
import acr.browser.lightning.constant.BookmarkPage;
import acr.browser.lightning.constant.Constants;
import acr.browser.lightning.constant.HistoryPage;

View File

@ -37,7 +37,6 @@ import javax.inject.Inject;
import acr.browser.lightning.R;
import acr.browser.lightning.app.BrowserApp;
import acr.browser.lightning.bus.BrowserEvents;
import acr.browser.lightning.constant.Constants;
import acr.browser.lightning.controller.UIController;
import acr.browser.lightning.utils.AdBlock;