|
|
|
@ -39,10 +39,12 @@ public class ActionSearchManager implements AlphaFineSearchProcessor {
|
|
|
|
|
List<UpdateActionModel> updateActions = UpdateActionManager.getUpdateActionManager().getUpdateActions(); |
|
|
|
|
for (UpdateActionModel updateActionModel : updateActions) { |
|
|
|
|
UpdateAction updateAction = updateActionModel.getAction(); |
|
|
|
|
if (updateAction.getName() != null && updateAction.getName().toLowerCase().contains(searchText.toLowerCase())) { |
|
|
|
|
if (updateAction.getName() != null) { |
|
|
|
|
if (updateAction.getName().toLowerCase().contains(searchText.toLowerCase()) || updateActionModel.getParentName().toLowerCase().contains(searchText.toLowerCase())) { |
|
|
|
|
filterModelList.add(new ActionModel(updateAction.getName(), updateActionModel.getParentName(), updateAction)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (filterModelList != null && filterModelList.size() >0) { |
|
|
|
|
final int length = Math.min(AlphaFineConstants.SHOW_SIZE, filterModelList.size()); |
|
|
|
|
for (int i = 0; i < length; i++) { |
|
|
|
|