From c43b36768c25d833fcf55e99aed074e1d8d9cfa0 Mon Sep 17 00:00:00 2001 From: Jays2Kings Date: Thu, 6 May 2021 16:14:52 -0400 Subject: [PATCH] fix titleTextAppearance typo in base toolbar --- app/src/main/java/eu/kanade/tachiyomi/ui/base/BaseToolbar.kt | 4 ++-- .../main/java/eu/kanade/tachiyomi/ui/base/CenteredToolbar.kt | 2 +- .../main/java/eu/kanade/tachiyomi/ui/base/FloatingToolbar.kt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/BaseToolbar.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/BaseToolbar.kt index 3b0aff18b9..a0b5797940 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/BaseToolbar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/BaseToolbar.kt @@ -15,7 +15,7 @@ open class BaseToolbar @JvmOverloads constructor(context: Context, attrs: Attrib protected lateinit var toolbarTitle: TextView private val defStyleRes = com.google.android.material.R.style.Widget_MaterialComponents_Toolbar - protected val titleTextAppeance: Int + protected val titleTextAppearance: Int var incognito = false init { @@ -25,7 +25,7 @@ open class BaseToolbar @JvmOverloads constructor(context: Context, attrs: Attrib 0, defStyleRes ) - titleTextAppeance = a.getResourceId(R.styleable.Toolbar_titleTextAppearance, 0) + titleTextAppearance = a.getResourceId(R.styleable.Toolbar_titleTextAppearance, 0) a.recycle() } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/CenteredToolbar.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/CenteredToolbar.kt index 8321540ad8..02b29163f2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/CenteredToolbar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/CenteredToolbar.kt @@ -19,7 +19,7 @@ class CenteredToolbar@JvmOverloads constructor(context: Context, attrs: Attribut override fun onFinishInflate() { super.onFinishInflate() toolbarTitle = findViewById(R.id.toolbar_title) - toolbarTitle.setTextAppearance(titleTextAppeance) + toolbarTitle.setTextAppearance(titleTextAppearance) toolbarTitle.setTextColor(context.getResourceColor(R.attr.actionBarTintColor)) collapseIcon = context.contextCompatDrawable(R.drawable.ic_arrow_back_24dp)?.apply { setTint(context.getResourceColor(R.attr.actionBarTintColor)) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/FloatingToolbar.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/FloatingToolbar.kt index 4146a7da35..37abdbf623 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/FloatingToolbar.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/FloatingToolbar.kt @@ -38,7 +38,7 @@ class FloatingToolbar @JvmOverloads constructor(context: Context, attrs: Attribu override fun onFinishInflate() { super.onFinishInflate() toolbarTitle = findViewById(R.id.card_title) - toolbarTitle.setTextAppearance(titleTextAppeance) + toolbarTitle.setTextAppearance(titleTextAppearance) toolbarTitle.setTextColor(actionColorAlpha) toolbarsubTitle = findViewById(R.id.card_subtitle)