Fix some crashes

pull/216/head
Koitharu 4 years ago
parent 5c86de555a
commit b9f2effb86
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -11,3 +11,5 @@
-keep public class ** extends org.koitharu.kotatsu.base.ui.BaseFragment -keep public class ** extends org.koitharu.kotatsu.base.ui.BaseFragment
-keep class org.koitharu.kotatsu.core.db.entity.* { *; } -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 android.widget.TextView
import androidx.annotation.StyleRes import androidx.annotation.StyleRes
import androidx.core.view.updateLayoutParams import androidx.core.view.updateLayoutParams
import androidx.core.widget.TextViewCompat
import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LifecycleOwner
import kotlin.math.roundToInt import kotlin.math.roundToInt
@ -77,7 +78,7 @@ class ItemSizeResolver(resources: Resources, private val settings: AppSettings)
} }
if (textAppearanceResId != prevTextAppearance) { if (textAppearanceResId != prevTextAppearance) {
prevTextAppearance = textAppearanceResId prevTextAppearance = textAppearanceResId
setTextAppearance(textAppearanceResId) TextViewCompat.setTextAppearance(this, textAppearanceResId)
requestLayout() requestLayout()
} }
} }

Loading…
Cancel
Save