private boolean hasCachedEntry(ResourcePath path, int minDepth, int maxDepth) { List<String> cachedResourceIds = m_searchableCache.getResourceIdsWithPrefix( m_context, toResourceId(path)); for (String resourceId : cachedResourceIds) { int relativeDepth = path.relativeDepth(toResourcePath(resourceId)); if (relativeDepth >= minDepth && relativeDepth <= maxDepth) { return true; } } return false; }
private boolean hasCachedEntry(ResourcePath path, int minDepth, int maxDepth) { List<String> cachedResourceIds = m_searchableCache.getResourceIdsWithPrefix( m_context, toResourceId(path)); for (String resourceId : cachedResourceIds) { int relativeDepth = path.relativeDepth(toResourcePath(resourceId)); if (relativeDepth >= minDepth && relativeDepth <= maxDepth) { return true; } } return false; }