mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-21 23:48:18 -05:00
Minor tweaks to use inline
This commit is contained in:
parent
b57b82677f
commit
5197d4acfc
@ -21,9 +21,9 @@ class SearchProvider(val b: Book, val indexManager: IndexManager) {
|
|||||||
return listOf()
|
return listOf()
|
||||||
}
|
}
|
||||||
|
|
||||||
val searchText = defaultSearchType.decorate(text)
|
val searchText = defaultSearchType decorate text
|
||||||
val results = b.find(searchText)
|
val results = b find searchText
|
||||||
return results.map { it as Verse }
|
return results map { it as Verse }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -31,6 +31,6 @@ class SearchProvider(val b: Book, val indexManager: IndexManager) {
|
|||||||
* seem to register itself properly in the book metadata
|
* seem to register itself properly in the book metadata
|
||||||
*/
|
*/
|
||||||
public fun isSearchAvailable(): Boolean =
|
public fun isSearchAvailable(): Boolean =
|
||||||
indexManager.isIndexed(b)
|
indexManager isIndexed b
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user