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 {
|
try {
|
||||||
String host = mPreferences.getString(PreferenceConstants.USE_PROXY_HOST, "localhost");
|
String host = mPreferences.getString(PreferenceConstants.USE_PROXY_HOST, "localhost");
|
||||||
int port = mPreferences.getInt(PreferenceConstants.USE_PROXY_PORT, 8118);
|
int port = mPreferences.getInt(PreferenceConstants.USE_PROXY_PORT, 8118);
|
||||||
WebkitProxy.setProxy("acr.browser.lightning.BrowserApp", getApplicationContext(), host,
|
WebkitProxy.setProxy(this.getPackageName() + ".BrowserApp", getApplicationContext(),
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user