Skip to content

Commit 2781a23

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Refactor settings/preferencesearch/PreferenceSearchItem#allRelevantSearchFields
It doesn't need to return mutable list
1 parent 6214ae3 commit 2781a23

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/org/schabi/newpipe/settings/preferencesearch/PreferenceSearchItem.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ data class PreferenceSearchItem(
3030
return !key.isEmpty() && !title.isEmpty()
3131
}
3232

33-
fun getAllRelevantSearchFields(): MutableList<String?> {
34-
return mutableListOf(title, summary, entries, breadcrumbs)
35-
}
33+
val allRelevantSearchFields: List<String>
34+
get() = listOf(title, summary, entries, breadcrumbs)
3635

3736
override fun toString(): String {
3837
return "PreferenceItem: $title $summary $key"

0 commit comments

Comments
 (0)