package ca.allanwang.kau.kpref.activity.items import android.view.View import ca.allanwang.kau.R import ca.allanwang.kau.kpref.activity.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(builder) { override fun defaultOnClick(itemView: View, innerContent: View?): Boolean { //nothing return true } class KPrefPlainTextBuilder( globalOptions: GlobalOptions, titleRes: Int ) : BaseContract by BaseBuilder(globalOptions, titleRes, {}, {}) override fun getType(): Int = R.id.kau_item_pref_plain_text }