diff options
author | Allan Wang <me@allanwang.ca> | 2019-09-08 01:25:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-08 01:25:23 -0700 |
commit | c6140c1008b042376bab328780f1686b75a9f839 (patch) | |
tree | 7a4578d02c9d93f922b721610124d445f7209ed3 /fastadapter | |
parent | a9407288fad0d30e71e2f6862b66533e043f9311 (diff) | |
parent | ff2a6237d1412b400644650f12389fefe73480c8 (diff) | |
download | kau-c6140c1008b042376bab328780f1686b75a9f839.tar.gz kau-c6140c1008b042376bab328780f1686b75a9f839.tar.bz2 kau-c6140c1008b042376bab328780f1686b75a9f839.zip |
Merge pull request #221 from AllanWang/android-readability
Android readability
Diffstat (limited to 'fastadapter')
-rw-r--r-- | fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt index be98ffa..32806f2 100644 --- a/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt +++ b/fastadapter/src/main/kotlin/ca/allanwang/kau/adapters/FastItemThemedAdapter.kt @@ -79,7 +79,9 @@ class FastItemThemedAdapter<Item : GenericItem>( } fun themeChanged() { - if (adapterItemCount == 0) return + if (adapterItemCount == 0) { + return + } injectTheme(adapterItems) notifyAdapterDataSetChanged() } |