From 2162ec9875fa3d2ad0f7c1dc201e9e0f5c774335 Mon Sep 17 00:00:00 2001 From: Scrappers Date: Fri, 2 Jul 2021 15:36:09 -0500 Subject: [PATCH] fix6 for search to include all the meets --- .../superiorExtendedEngine/menuStates/uiPager/UiPager.java | 1 - .../com/myGame/JMESurfaceViewExampleActivity/UiTestCase.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/menuStates/uiPager/UiPager.java b/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/menuStates/uiPager/UiPager.java index 3aa2f21..fe5ebe3 100644 --- a/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/menuStates/uiPager/UiPager.java +++ b/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/menuStates/uiPager/UiPager.java @@ -209,7 +209,6 @@ public String[] search(String[] searchList, String[] searchKeyWords, ActionInjec if(injector != null){ injector.execute(getChildUiStateByIndex(j), j, resultList[0][i]); } - break; } } } diff --git a/demoApp/src/main/java/com/myGame/JMESurfaceViewExampleActivity/UiTestCase.java b/demoApp/src/main/java/com/myGame/JMESurfaceViewExampleActivity/UiTestCase.java index 5316477..f0856f0 100644 --- a/demoApp/src/main/java/com/myGame/JMESurfaceViewExampleActivity/UiTestCase.java +++ b/demoApp/src/main/java/com/myGame/JMESurfaceViewExampleActivity/UiTestCase.java @@ -63,7 +63,7 @@ public void onClick(View v) { Toast.makeText(uiPager.getContext(), "Search Button Clicked", Toast.LENGTH_LONG).show(); try { uiPager.removeAllViews(); - uiPager.search(sortedList, new String[]{"Revert Search", "PAvlY", "Thomas"}, (uiState, position, currentItem) -> { + uiPager.search(sortedList, new String[]{"Search", "PAvlY", "Thomas"}, (uiState, position, currentItem) -> { uiPager.addView(uiState); uiState.setBackgroundColor(Color.MAGENTA); if(uiState.getId() == 'P'){