settings: fix incorrect divider use

Fix incorrect divider setups in the settings UI.
This commit is contained in:
Alexander Capehart
2023-01-17 14:55:54 -07:00
parent 9e1f6af21e
commit 0f265cc2a4
2 changed files with 6 additions and 16 deletions
@@ -38,7 +38,7 @@ constructor(
override fun shouldDrawDivider(position: Int, adapter: RecyclerView.Adapter<*>?) =
try {
logD(position)
(adapter as PreferenceGroupAdapter).getItem(position) is PreferenceCategory
(adapter as PreferenceGroupAdapter).getItem(position + 1) is PreferenceCategory
} catch (e: ClassCastException) {
false
} catch (e: IndexOutOfBoundsException) {