Browse Source

Removed unused class

renovate/org.robolectric-robolectric-4.x
zerrium 4 years ago
parent
commit
741aa0dfa5
  1. 31
      app/src/main/java/zerrium/FilterKeywordsUtility.java
  2. 21
      app/src/main/res/values/filter_keyword.xml

31
app/src/main/java/zerrium/FilterKeywordsUtility.java

@ -1,31 +0,0 @@
package zerrium;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public abstract class FilterKeywordsUtility {
private static final List<String> FILTER_KEYWORDS = new ArrayList<>();
public static boolean append(final String keyword){
if(keyword == null) return false;
FILTER_KEYWORDS.add(keyword);
return true;
}
public static boolean insert(final String[] keywords){
if(keywords == null) return false;
FILTER_KEYWORDS.addAll(Arrays.asList(keywords));
return true;
}
public static boolean filter(String caption){
if(caption == null) return false;
String temp = caption.toLowerCase(Locale.getDefault());
for(final String s:FILTER_KEYWORDS){
if(temp.contains(s)) return true;
}
return false;
}
}

21
app/src/main/res/values/filter_keyword.xml

@ -1,21 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="filter_keyword">
<item>paid promote</item>
<item>endorse</item>
<item>endorsement</item>
<item>paid-promote</item>
<item>paid_promote</item>
<item>paid.promote</item>
<item>paidpromote</item>
<item>advertisement</item>
<item>p41d pr0m0t3</item>
<item>p@1d pr0m0t3</item>
<item>sponsor</item>
<item>sp0ns0r</item>
<item>3nd0r53</item>
<item>iklan</item>
<item>1kl@n</item>
<item>1kl4n</item>
</string-array>
</resources>
Loading…
Cancel
Save