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

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

Issue 6196972490850304: Make the Acceptable Ads link clickable (Closed)
Patch Set: Encode URL Created Nov. 26, 2013, 1:47 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/ABPEngine.java ('k') | src/org/adblockplus/android/Preferences.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/AdblockPlus.java
===================================================================
--- a/src/org/adblockplus/android/AdblockPlus.java
+++ b/src/org/adblockplus/android/AdblockPlus.java
@@ -284,6 +284,13 @@
abpEngine.setAcceptableAdsEnabled(enabled);
}
+ public String getAcceptableAdsUrl()
+ {
+ final String documentationLink = abpEngine.getDocumentationLink();
+ final String locale = getResources().getConfiguration().locale.toString().replace("_", "-");
+ return documentationLink.replace("%LINK%", "acceptable_ads").replace("%LANG%", locale);
+ }
+
/**
* Returns ElemHide selectors for domain.
*
« no previous file with comments | « src/org/adblockplus/android/ABPEngine.java ('k') | src/org/adblockplus/android/Preferences.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld