detail: fix highlighting issues
Fix two major highlighting bugs based around the janky and stupid way I would handle highlighting previously. Previously, I would index the views of a RecyclerView in order to highlight viewholders. In retrospect this was a pretty bad idea, as viewholders could be in a weird limbo state where they are bound, but not accessible. I mean, it's in the name. It's a Recycling View. Fortunately, google actually knew what they were doing and provided a way to mutate viewholders at runtime using notifyItemChanged. And the API actually makes sense! Wow! Migrate all detail adapters to a system that uses notifyItemChanged instead of the terrible pre-existing system.
This commit is contained in:
@@ -56,6 +56,7 @@ dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
|
||||
|
||||
// --- SUPPORT ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user