Fix some crashes
This commit is contained in:
4
app/proguard-rules.pro
vendored
4
app/proguard-rules.pro
vendored
@@ -10,4 +10,6 @@
|
||||
}
|
||||
-keep public class ** extends org.koitharu.kotatsu.base.ui.BaseFragment
|
||||
-keep class org.koitharu.kotatsu.core.db.entity.* { *; }
|
||||
-dontwarn okhttp3.internal.platform.ConscryptPlatform
|
||||
-dontwarn okhttp3.internal.platform.ConscryptPlatform
|
||||
|
||||
-keep class org.koitharu.kotatsu.core.exceptions.* { *; }
|
||||
|
||||
@@ -6,6 +6,7 @@ import android.view.View
|
||||
import android.widget.TextView
|
||||
import androidx.annotation.StyleRes
|
||||
import androidx.core.view.updateLayoutParams
|
||||
import androidx.core.widget.TextViewCompat
|
||||
import androidx.lifecycle.DefaultLifecycleObserver
|
||||
import androidx.lifecycle.LifecycleOwner
|
||||
import kotlin.math.roundToInt
|
||||
@@ -77,7 +78,7 @@ class ItemSizeResolver(resources: Resources, private val settings: AppSettings)
|
||||
}
|
||||
if (textAppearanceResId != prevTextAppearance) {
|
||||
prevTextAppearance = textAppearanceResId
|
||||
setTextAppearance(textAppearanceResId)
|
||||
TextViewCompat.setTextAppearance(this, textAppearanceResId)
|
||||
requestLayout()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user