diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-16 23:40:10 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-16 23:40:10 -0700 |
commit | 9ae298d6691d56467627198cc557a8765cc0e9a9 (patch) | |
tree | 2986afa89ade7c141233891db77985155cc919ce /library/src/main/kotlin/ca | |
parent | e6c13788e94d10832116fc08e4c71d5f0d38511b (diff) | |
download | kau-9ae298d6691d56467627198cc557a8765cc0e9a9.tar.gz kau-9ae298d6691d56467627198cc557a8765cc0e9a9.tar.bz2 kau-9ae298d6691d56467627198cc557a8765cc0e9a9.zip |
Update title checker
Diffstat (limited to 'library/src/main/kotlin/ca')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/kpref/KPrefActivity.kt | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |