mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Switch to contains() instead of matches()
This commit is contained in:
parent
1c3fd70cb3
commit
87f4509db4
1 changed files with 2 additions and 2 deletions
|
|
@ -219,12 +219,12 @@ public class CategorizationFragment extends Fragment {
|
|||
Log.d(TAG, "Adding recent items: " + recentItems);
|
||||
|
||||
for (String item : mergedItems) {
|
||||
if (item.matches("(19|20)\\d{2}")) {
|
||||
if (item.contains("(19|20)\\d{2}")) {
|
||||
Log.d(TAG, "Filtering out year " + item);
|
||||
mergedItems.remove(item);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Needs to be an ArrayList and not a List unless we want to modify a big portion of preexisting code
|
||||
ArrayList<String> mergedItemsList = new ArrayList<String>(mergedItems);
|
||||
Log.d(TAG, "Merged item list: " + mergedItemsList);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue