Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/org/adblockplus/android/ProxyConfigurationActivity.java

Issue 4705284891082752: Proxy configurators (Closed)
Patch Set: Another round Created Aug. 19, 2014, 4:34 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/org/adblockplus/android/Preferences.java ('k') | src/org/adblockplus/android/ProxyServerType.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/ProxyConfigurationActivity.java
diff --git a/src/org/adblockplus/android/ProxyConfigurationActivity.java b/src/org/adblockplus/android/ProxyConfigurationActivity.java
index cf138f173a75cd16475f21c6a94379b98b6fb897..14fc958cc043dc08de8ac26f321661a07e899083 100644
--- a/src/org/adblockplus/android/ProxyConfigurationActivity.java
+++ b/src/org/adblockplus/android/ProxyConfigurationActivity.java
@@ -20,7 +20,7 @@ public class ProxyConfigurationActivity extends Activity
final int port = getIntent().getIntExtra("port", 0);
final StringBuilder info = new StringBuilder();
- final int textId = ProxyService.NATIVE_PROXY_SUPPORTED ? R.raw.proxysettings : R.raw.proxysettings_old;
+ final int textId = Utils.isNativeProxySupported(this) ? R.raw.proxysettings : R.raw.proxysettings_old;
AdblockPlus.appendRawTextFile(this, info, textId);
final String msg = String.format(info.toString(), port);
@@ -28,7 +28,7 @@ public class ProxyConfigurationActivity extends Activity
tv.setText(Html.fromHtml(msg));
tv.setMovementMethod(LinkMovementMethod.getInstance());
- final Button buttonToHide = (Button) findViewById(ProxyService.NATIVE_PROXY_SUPPORTED ? R.id.gotit : R.id.opensettings);
+ final Button buttonToHide = (Button) findViewById(Utils.isNativeProxySupported(this) ? R.id.gotit : R.id.opensettings);
buttonToHide.setVisibility(View.GONE);
}
« no previous file with comments | « src/org/adblockplus/android/Preferences.java ('k') | src/org/adblockplus/android/ProxyServerType.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld