Browse Source

Retrieve correct package name rather than hardcoding it

master
Anthony Restaino 10 years ago
parent
commit
eff7e3800d
  1. 4
      src/acr/browser/lightning/BrowserActivity.java

4
src/acr/browser/lightning/BrowserActivity.java

@ -641,8 +641,8 @@ public class BrowserActivity extends ActionBarActivity implements BrowserControl @@ -641,8 +641,8 @@ public class BrowserActivity extends ActionBarActivity implements BrowserControl
try {
String host = mPreferences.getString(PreferenceConstants.USE_PROXY_HOST, "localhost");
int port = mPreferences.getInt(PreferenceConstants.USE_PROXY_PORT, 8118);
WebkitProxy.setProxy("acr.browser.lightning.BrowserApp", getApplicationContext(), host,
port);
WebkitProxy.setProxy(this.getPackageName() + ".BrowserApp", getApplicationContext(),
host, port);
} catch (Exception e) {
Log.d(Constants.TAG, "error enabling web proxying", e);
}

Loading…
Cancel
Save