Skip to content

Commit

Permalink
Fixed a typo in the order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
wanam authored Feb 15, 2018
1 parent ca96594 commit 7c72940
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/ma/wanam/youtubeadaway/Xposed.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ private void checkAndHideVisibleAd(XC_MethodHook.MethodHookParam param) {

private boolean isAd(String key) {
return !key.startsWith(SKIP_AD)
&& key.equals("ad") || key.equals("ads") || key.startsWith("ad_") || key.startsWith("ads_")
&& (key.equals("ad") || key.equals("ads") || key.startsWith("ad_") || key.startsWith("ads_")
|| key.contains("_cta") || key.contains("shopping") || key.contains("teaser")
|| key.contains("companion") || key.contains("_ad_") || key.contains("_ads_")
|| key.contains("promo") || key.endsWith("_ad") || key.endsWith("_ads");
|| key.contains("promo") || key.endsWith("_ad") || key.endsWith("_ads"));
}

private void debug(String msg) {
Expand Down

0 comments on commit 7c72940

Please sign in to comment.