diff options
Diffstat (limited to 'library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt')
-rw-r--r-- | library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt index 94ef745..7abb631 100644 --- a/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt +++ b/library/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefHeader.kt @@ -1,6 +1,5 @@ package ca.allanwang.kau.kpref.items -import android.support.annotation.StringRes import android.view.View import ca.allanwang.kau.R import ca.allanwang.kau.kpref.KPrefAdapterBuilder @@ -9,9 +8,9 @@ import ca.allanwang.kau.kpref.KPrefAdapterBuilder * Created by Allan Wang on 2017-06-07. * * Header preference - * This view just holds a title and is not clickable. It is styled using the accent color + * This view just holds a titleRes and is not clickable. It is styled using the accent color */ -class KPrefHeader(builder: KPrefAdapterBuilder, @StringRes title: Int) : KPrefItemCore(builder, title = title) { +class KPrefHeader(adapterBuilder: KPrefAdapterBuilder, builder: CoreContract) : KPrefItemCore(adapterBuilder, builder) { override fun getLayoutRes(): Int = R.layout.kau_preference_header |