Browse Source

Fix BrowserApp class not being found by webkitproxy

master
Anthony Restaino 10 years ago
parent
commit
cb27bf8afa
  1. 4
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

4
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -547,7 +547,7 @@ public class BrowserActivity extends ThemableActivity implements BrowserControll
try { try {
String host = mPreferences.getProxyHost(); String host = mPreferences.getProxyHost();
int port = mPreferences.getProxyPort(); int port = mPreferences.getProxyPort();
WebkitProxy.setProxy(this.getPackageName() + ".BrowserApp", getApplicationContext(), WebkitProxy.setProxy(BrowserApp.class.getName(), getApplicationContext(),
host, port); host, port);
} catch (Exception e) { } catch (Exception e) {
Log.d(Constants.TAG, "error enabling web proxying", e); Log.d(Constants.TAG, "error enabling web proxying", e);
@ -710,7 +710,7 @@ public class BrowserActivity extends ThemableActivity implements BrowserControll
initializeTor(); initializeTor();
} else { } else {
try { try {
WebkitProxy.resetProxy(mActivity.getPackageName() + ".BrowserApp", WebkitProxy.resetProxy(BrowserApp.class.getName(),
getApplicationContext()); getApplicationContext());
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

Loading…
Cancel
Save