Browse Source

Remove unnecessary imports, make methods static

master
Anthony Restaino 9 years ago
parent
commit
ae6726b290
  1. 1
      app/src/main/java/acr/browser/lightning/activity/TabsManager.java
  2. 1
      app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java
  3. 2
      app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java
  4. 2
      app/src/main/java/acr/browser/lightning/fragment/anim/HorizontalItemAnimator.java
  5. 2
      app/src/main/java/acr/browser/lightning/fragment/anim/VerticalItemAnimator.java
  6. 4
      app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java
  7. 1
      app/src/main/java/acr/browser/lightning/view/LightningView.java
  8. 1
      app/src/main/java/acr/browser/lightning/view/LightningWebClient.java

1
app/src/main/java/acr/browser/lightning/activity/TabsManager.java

@ -18,7 +18,6 @@ import java.util.ArrayList; @@ -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;

1
app/src/main/java/acr/browser/lightning/browser/BrowserPresenter.java

@ -14,7 +14,6 @@ import javax.inject.Inject; @@ -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;

2
app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java

@ -308,7 +308,7 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref @@ -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);

2
app/src/main/java/acr/browser/lightning/fragment/anim/HorizontalItemAnimator.java

@ -656,7 +656,7 @@ public class HorizontalItemAnimator extends SimpleItemAnimator { @@ -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();
}

2
app/src/main/java/acr/browser/lightning/fragment/anim/VerticalItemAnimator.java

@ -655,7 +655,7 @@ public class VerticalItemAnimator extends SimpleItemAnimator { @@ -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();
}

4
app/src/main/java/acr/browser/lightning/view/LightningChromeClient.java

@ -1,7 +1,6 @@ @@ -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; @@ -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; @@ -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;

1
app/src/main/java/acr/browser/lightning/view/LightningView.java

@ -42,7 +42,6 @@ import javax.inject.Inject; @@ -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;

1
app/src/main/java/acr/browser/lightning/view/LightningWebClient.java

@ -37,7 +37,6 @@ import javax.inject.Inject; @@ -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;

Loading…
Cancel
Save