Meet Patadia
1 min readSep 9, 2024

--

Hi Tomasz,

Thanks for reading my blog and raising queries. (Great observations!)

Regarding the points you mentioned:

- For the `matchResult` and the first letter matching, the idea was to demonstrate the flexibility you have when filtering search results, like including different conditions for matching. While in this example, it's just a simple addition, it gives readers a sense of how they can extend or modify matching logic to suit their needs, making search behavior more dynamic.

- And you’re absolutely right about the instantiation of `matchResult` within `isMatchWithQuery`. For demonstration purposes, I kept it within the function to keep things straightforward. However, optimizing this and making necessary adjustments for performance would definitely be something to consider.

- The `isSelected` property indeed isn't relevant to this particular blog post (it's a part of the previous blog on based on multi-selection, where it was used more meaningfully.

I appreciate to point out that, and I'll adjust this to avoid confusion (thanks for catching that)).

--

--

Meet Patadia
Meet Patadia

Written by Meet Patadia

Software Developer - Android, Java, Kotlin, MVVM, Jetpack Compose

No responses yet