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

Unified Diff: README.md

Issue 29691555: Issue 6364 - Exclude double initialization of AdblockHelper (Closed)
Patch Set: Created Feb. 7, 2018, 9:28 a.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
Index: README.md
diff --git a/README.md b/README.md
index 73fad80f5235d9d368e19f0be2a9a261abad55ee..3f962acbf4b742e8b327c9f18d709fb680158a61 100644
--- a/README.md
+++ b/README.md
@@ -149,6 +149,14 @@ Or you can use AdblockHelper:
// optional - provide preloaded subscription files in app resoruces
.preloadSubscriptions(AdblockHelper.PRELOAD_PREFERENCE_NAME, map);
+Make sure you initialize it once during app launch, call `isInit()` to check it:
+
+ if (!AdblockHelper.get().isInit())
+ {
+ // requires initialization
+ ...
+ }
+
Sometimes it's desired to initialize or deinitialize FilterEngine instance
when created:

Powered by Google App Engine
This is Rietveld