diff options
author | Allan Wang <me@allanwang.ca> | 2018-02-13 16:51:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 16:51:56 -0500 |
commit | cdb1bd6eec2c90abc9d3d982814552443c7fc3b2 (patch) | |
tree | 2d21dfcce61fec76384d862b410ee61579169bc2 /about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt | |
parent | f5d6ddb72a3dc369b95631a607471f9a6ea5e70f (diff) | |
download | kau-cdb1bd6eec2c90abc9d3d982814552443c7fc3b2.tar.gz kau-cdb1bd6eec2c90abc9d3d982814552443c7fc3b2.tar.bz2 kau-cdb1bd6eec2c90abc9d3d982814552443c7fc3b2.zip |
Update docs (#135)
* Update docs
* Update format
* Update dependencies
Diffstat (limited to 'about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt')
-rw-r--r-- | about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt b/about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt index 47b9ac4..b6ea16b 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/AboutPanelDelegate.kt @@ -114,7 +114,7 @@ open class AboutPanelMain : AboutPanelRecycler() { override fun inflatePage(activity: AboutActivityBase, parent: ViewGroup, position: Int): View { with(activity) { - adapter = FastItemThemedAdapter<IItem<*, *>>(configs) + adapter = FastItemThemedAdapter(configs) recycler = fullLinearRecycler(adapter) adapter.add(CutoutIItem { with(configs) { @@ -156,7 +156,7 @@ open class AboutPanelLibs : AboutPanelRecycler() { doAsync { with(activity) { items = getLibraries(if (rClass == null) Libs(activity) else Libs(this, Libs.toStringArray(rClass.fields))) - .map { LibraryIItem(it) } + .map(::LibraryIItem) if (pageStatus[position] == 1) uiThread { addItems(activity, position) } } @@ -181,7 +181,7 @@ open class AboutPanelFaqs : AboutPanelRecycler() { override fun loadItems(activity: AboutActivityBase, position: Int) { with(activity) { kauParseFaq(configs.faqXmlRes, configs.faqParseNewLine) { - items = it.map { FaqIItem(it) } + items = it.map(::FaqIItem) if (pageStatus[position] == 1) addItems(activity, position) } |