Fixed crash when opening browser from intent

This commit is contained in:
Anthony Restaino 2016-01-22 08:19:33 -05:00
parent 8b44ce12fa
commit da4985d4de
3 changed files with 6 additions and 4 deletions
app/src
LightningPlus/java/acr/browser/lightning/utils
main/java/acr/browser/lightning

View File

@ -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;

View File

@ -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 {
void inject(ReadingActivity activity);
void inject(LightningWebClient webClient);
}

View File

@ -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 {
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;