Browse Source

Fixed crash when opening browser from intent

master
Anthony Restaino 9 years ago
parent
commit
da4985d4de
  1. 1
      app/src/LightningPlus/java/acr/browser/lightning/utils/ProxyUtils.java
  2. 3
      app/src/main/java/acr/browser/lightning/app/AppComponent.java
  3. 6
      app/src/main/java/acr/browser/lightning/view/LightningWebClient.java

1
app/src/LightningPlus/java/acr/browser/lightning/utils/ProxyUtils.java

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
package acr.browser.lightning.utils;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.util.Log;

3
app/src/main/java/acr/browser/lightning/app/AppComponent.java

@ -14,6 +14,7 @@ import acr.browser.lightning.fragment.TabsFragment; @@ -14,6 +14,7 @@ import acr.browser.lightning.fragment.TabsFragment;
import acr.browser.lightning.object.SearchAdapter;
import acr.browser.lightning.utils.ProxyUtils;
import acr.browser.lightning.view.LightningView;
import acr.browser.lightning.view.LightningWebClient;
import dagger.Component;
@Singleton
@ -46,4 +47,6 @@ public interface AppComponent { @@ -46,4 +47,6 @@ public interface AppComponent {
void inject(ReadingActivity activity);
void inject(LightningWebClient webClient);
}

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

@ -44,7 +44,7 @@ import acr.browser.lightning.utils.IntentUtils; @@ -44,7 +44,7 @@ import acr.browser.lightning.utils.IntentUtils;
import acr.browser.lightning.utils.ProxyUtils;
import acr.browser.lightning.utils.Utils;
class LightningWebClient extends WebViewClient {
public class LightningWebClient extends WebViewClient {
private final Activity mActivity;
@ -54,10 +54,10 @@ class LightningWebClient extends WebViewClient { @@ -54,10 +54,10 @@ class LightningWebClient extends WebViewClient {
private final Bus mEventBus;
private final IntentUtils mIntentUtils;
@Inject
ProxyUtils mProxyUtils;
@Inject ProxyUtils mProxyUtils;
LightningWebClient(Activity activity, LightningView lightningView) {
BrowserApp.getAppComponent().inject(this);
mActivity = activity;
mUIController = (UIController) activity;
mLightningView = lightningView;

Loading…
Cancel
Save