Retrieve correct package name rather than hardcoding it

This commit is contained in:
Anthony Restaino 2015-01-27 20:27:54 -05:00
parent bdb36be4e4
commit eff7e3800d

View File

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