|
|
@ -1,10 +1,8 @@ |
|
|
|
package io.legado.app.lib.theme.prefs |
|
|
|
package io.legado.app.lib.theme.prefs |
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context |
|
|
|
import android.content.Context |
|
|
|
import android.os.Build |
|
|
|
|
|
|
|
import android.util.AttributeSet |
|
|
|
import android.util.AttributeSet |
|
|
|
import android.widget.TextView |
|
|
|
import android.widget.TextView |
|
|
|
import androidx.annotation.RequiresApi |
|
|
|
|
|
|
|
import androidx.preference.PreferenceCategory |
|
|
|
import androidx.preference.PreferenceCategory |
|
|
|
import androidx.preference.PreferenceViewHolder |
|
|
|
import androidx.preference.PreferenceViewHolder |
|
|
|
import io.legado.app.lib.theme.ThemeStore |
|
|
|
import io.legado.app.lib.theme.ThemeStore |
|
|
@ -12,17 +10,8 @@ import io.legado.app.lib.theme.ThemeStore |
|
|
|
|
|
|
|
|
|
|
|
class ATEPreferenceCategory : PreferenceCategory { |
|
|
|
class ATEPreferenceCategory : PreferenceCategory { |
|
|
|
|
|
|
|
|
|
|
|
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) |
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int) : |
|
|
|
|
|
|
|
super(context, attrs, defStyleAttr, defStyleRes) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : |
|
|
|
|
|
|
|
super(context, attrs, defStyleAttr) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) |
|
|
|
constructor(context: Context, attrs: AttributeSet) : super(context, attrs) |
|
|
|
|
|
|
|
|
|
|
|
constructor(context: Context) : super(context) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun onBindViewHolder(holder: PreferenceViewHolder?) { |
|
|
|
override fun onBindViewHolder(holder: PreferenceViewHolder?) { |
|
|
|
super.onBindViewHolder(holder) |
|
|
|
super.onBindViewHolder(holder) |
|
|
|
holder?.let { |
|
|
|
holder?.let { |
|
|
|