fixed init filters
This commit is contained in:
@@ -231,10 +231,14 @@ public class AdBlockHook {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (NewsFeedFiltersUtils.injectFiltersReposts(list) && !isWhitelistedFilters(list)) {
|
||||
if (dev())
|
||||
Log.d("NewsfeedAdBlockV2", "Removed post " + list.optInt("post_id") + " from feed, Reason: repost ad");
|
||||
continue;
|
||||
try {
|
||||
if (NewsFeedFiltersUtils.injectFiltersReposts(list) && !isWhitelistedFilters(list)) {
|
||||
if (dev())
|
||||
Log.d("NewsfeedAdBlockV2", "Removed post " + list.optInt("post_id") + " from feed, Reason: repost ad");
|
||||
continue;
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
Log.d("RepostInj", ex.getMessage());
|
||||
}
|
||||
|
||||
newItems.put(list);
|
||||
|
||||
@@ -135,7 +135,6 @@ public class NewsFeedFiltersUtils {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (mFiltersLinks != null) {
|
||||
for (String filter : mFiltersLinks) {
|
||||
if (copyrightLink != null && copyrightLink.contains(filter)) return true;
|
||||
|
||||
@@ -36,6 +36,7 @@ public class Preferences {
|
||||
|
||||
GmsUtils.fixGapps();
|
||||
setProxy();
|
||||
setupFilters();
|
||||
VTVerifications.load(application);
|
||||
LifecycleUtils.registerActivities(application);
|
||||
} // VK Init
|
||||
|
||||
Reference in New Issue
Block a user