Unverified Commit 62741a5a authored by Mygod's avatar Mygod Committed by GitHub

Fix deprecation of adapterPosition

parent b873348b
......@@ -43,7 +43,7 @@ class ProfilesDialogFragment : LeanbackListPreferenceDialogFragmentCompat() {
}
override fun onClick(v: View) {
val index = adapterPosition
val index = bindingAdapterPosition
if (index == RecyclerView.NO_POSITION) return
Core.switchProfile(adapter.profiles[index].id)
(targetFragment as MainPreferenceFragment).startService()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment