From 9ae298d6691d56467627198cc557a8765cc0e9a9 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 16 Jun 2017 23:40:10 -0700 Subject: Update title checker --- library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/src/main/kotlin/ca/allanwang') diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt index 6a188cc..f2f045b 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt @@ -49,7 +49,7 @@ abstract class KPrefActivity : AppCompatActivity() { fun reloadByTitle(@StringRes vararg title: Int) { if (title.isEmpty()) return adapter.adapterItems.forEachIndexed { index, item -> - if (title.any { item.title == it }) + if (title.any { item.core.titleRes == it }) adapter.notifyItemChanged(index) } } -- cgit v1.2.3