Retrieve correct package name rather than hardcoding it
This commit is contained in:
parent
bdb36be4e4
commit
eff7e3800d
@ -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…
x
Reference in New Issue
Block a user