Browse Source

Update app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java

Co-authored-by: Austin Huang <[email protected]>
renovate/org.robolectric-robolectric-4.x
Zerrium 4 years ago
committed by GitHub
parent
commit
d2324a7edd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java

2
app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java

@ -30,7 +30,7 @@ public final class KeywordsFilterUtils {
final Caption c = media.getCaption(); final Caption c = media.getCaption();
if(c == null) return false; if(c == null) return false;
if(keywords.isEmpty()) return false; if(keywords.isEmpty()) return false;
final String temp = c.getText().toLowerCase(LocaleUtils.getCurrentLocale());
final String temp = c.getText().toLowerCase();
for(final String s:keywords){ for(final String s:keywords){
if(temp.contains(s)) return true; if(temp.contains(s)) return true;
} }

Loading…
Cancel
Save