mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 04:59:17 +01:00
fix titleTextAppearance typo in base toolbar
This commit is contained in:
parent
6f18686e08
commit
c43b36768c
@ -15,7 +15,7 @@ open class BaseToolbar @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||||||
protected lateinit var toolbarTitle: TextView
|
protected lateinit var toolbarTitle: TextView
|
||||||
private val defStyleRes = com.google.android.material.R.style.Widget_MaterialComponents_Toolbar
|
private val defStyleRes = com.google.android.material.R.style.Widget_MaterialComponents_Toolbar
|
||||||
|
|
||||||
protected val titleTextAppeance: Int
|
protected val titleTextAppearance: Int
|
||||||
|
|
||||||
var incognito = false
|
var incognito = false
|
||||||
init {
|
init {
|
||||||
@ -25,7 +25,7 @@ open class BaseToolbar @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||||||
0,
|
0,
|
||||||
defStyleRes
|
defStyleRes
|
||||||
)
|
)
|
||||||
titleTextAppeance = a.getResourceId(R.styleable.Toolbar_titleTextAppearance, 0)
|
titleTextAppearance = a.getResourceId(R.styleable.Toolbar_titleTextAppearance, 0)
|
||||||
a.recycle()
|
a.recycle()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class CenteredToolbar@JvmOverloads constructor(context: Context, attrs: Attribut
|
|||||||
override fun onFinishInflate() {
|
override fun onFinishInflate() {
|
||||||
super.onFinishInflate()
|
super.onFinishInflate()
|
||||||
toolbarTitle = findViewById<MaterialTextView>(R.id.toolbar_title)
|
toolbarTitle = findViewById<MaterialTextView>(R.id.toolbar_title)
|
||||||
toolbarTitle.setTextAppearance(titleTextAppeance)
|
toolbarTitle.setTextAppearance(titleTextAppearance)
|
||||||
toolbarTitle.setTextColor(context.getResourceColor(R.attr.actionBarTintColor))
|
toolbarTitle.setTextColor(context.getResourceColor(R.attr.actionBarTintColor))
|
||||||
collapseIcon = context.contextCompatDrawable(R.drawable.ic_arrow_back_24dp)?.apply {
|
collapseIcon = context.contextCompatDrawable(R.drawable.ic_arrow_back_24dp)?.apply {
|
||||||
setTint(context.getResourceColor(R.attr.actionBarTintColor))
|
setTint(context.getResourceColor(R.attr.actionBarTintColor))
|
||||||
|
@ -38,7 +38,7 @@ class FloatingToolbar @JvmOverloads constructor(context: Context, attrs: Attribu
|
|||||||
override fun onFinishInflate() {
|
override fun onFinishInflate() {
|
||||||
super.onFinishInflate()
|
super.onFinishInflate()
|
||||||
toolbarTitle = findViewById<MaterialTextView>(R.id.card_title)
|
toolbarTitle = findViewById<MaterialTextView>(R.id.card_title)
|
||||||
toolbarTitle.setTextAppearance(titleTextAppeance)
|
toolbarTitle.setTextAppearance(titleTextAppearance)
|
||||||
toolbarTitle.setTextColor(actionColorAlpha)
|
toolbarTitle.setTextColor(actionColorAlpha)
|
||||||
|
|
||||||
toolbarsubTitle = findViewById<MaterialTextView>(R.id.card_subtitle)
|
toolbarsubTitle = findViewById<MaterialTextView>(R.id.card_subtitle)
|
||||||
|
Loading…
Reference in New Issue
Block a user