package im.dino.dbinspector.ui.shared.diffutils

import androidx.recyclerview.widget.DiffUtil

internal class FieldDiffUtil : DiffUtil.ItemCallback<String>() {

    override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
        return oldItem === newItem
    }

    override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
        return oldItem == newItem
    }
}

package im.dino.dbinspector.ui.shared.diffutils

import androidx.recyclerview.widget.DiffUtil

internal class FieldDiffUtil : DiffUtil.ItemCallback<String>() {

    override fun areItemsTheSame(oldItem: String, newItem: String): Boolean {
        return oldItem == newItem
    }

    override fun areContentsTheSame(oldItem: String, newItem: String): Boolean {
        return oldItem == newItem
    }
}

Fix diff util to avoid glitching in UI
Fix diff util to avoid glitching in UI

infinum/android_dbinspector