diff options
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt b/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt deleted file mode 100644 index 6f7adf8..0000000 --- a/core/src/main/kotlin/ca/allanwang/kau/kpref/items/KPrefPlainText.kt +++ /dev/null @@ -1,29 +0,0 @@ -package ca.allanwang.kau.kpref.items - -import android.view.View -import ca.allanwang.kau.R -import ca.allanwang.kau.kpref.GlobalOptions - -/** - * Created by Allan Wang on 2017-06-14. - * - * Just text with the core options. Extends base preference but has an empty getter and setter - * Useful replacement of [KPrefText] when nothing is displayed on the right side, - * and when the preference is completely handled by the click - * - */ -open class KPrefPlainText(val builder: KPrefPlainTextBuilder) : KPrefItemBase<Unit>(builder) { - - override fun defaultOnClick(itemView: View, innerContent: View?): Boolean { - //nothing - return true - } - - class KPrefPlainTextBuilder( - globalOptions: GlobalOptions, - titleRes: Int - ) : BaseContract<Unit> by BaseBuilder(globalOptions, titleRes, {}, {}) - - override fun getType(): Int = R.id.kau_item_pref_plain_text - -}
\ No newline at end of file |