/** * Check in our list of applied actions that a particular * {@link com.android.manifmerger.Actions.ActionType} action was recorded on the passed element. * @return true if it was applied, false otherwise. */ private static boolean isNodeOperationPresent(@NonNull XmlElement xmlElement, @NonNull Actions actions, ActionType action) { for (Actions.NodeRecord nodeRecord : actions.getNodeRecords(xmlElement.getId())) { if (nodeRecord.getActionType() == action) { return true; } } return false; }