From 0849d9d61fcd342c8e5ba04b83a08cff6269d019 Mon Sep 17 00:00:00 2001 From: zerrium Date: Sun, 21 Mar 2021 01:43:53 +0700 Subject: [PATCH] Removed java.util.Locale on KeywordsFilterUtils.java --- .../java/awais/instagrabber/utils/KeywordsFilterUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java b/app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java index 9e94fbea..f4d42ac1 100644 --- a/app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/KeywordsFilterUtils.java @@ -2,7 +2,6 @@ package awais.instagrabber.utils; import java.util.ArrayList; import java.util.List; -import java.util.Locale; import awais.instagrabber.repositories.responses.Caption; import awais.instagrabber.repositories.responses.Media; @@ -18,7 +17,7 @@ public final class KeywordsFilterUtils { public boolean filter(final String caption){ if(caption == null) return false; if(keywords.isEmpty()) return false; - final String temp = caption.toLowerCase(Locale.getDefault()); + final String temp = caption.toLowerCase(); for(final String s:keywords){ if(temp.contains(s)) return true; }