fix emoji size in markdown headlines

androidx.emoji2:emoji2:1.4.0 seems to fix the bug that emojis in markdown headlines are rendered too large.

To use v1.4.0 of emoji2 it was necessary to bump compileSdk to v34, which in turn required the minor changes to the overwritten
onDraw of View class.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-10-12 13:30:51 +02:00
parent 6c01439e6d
commit cbef8f7cdf
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
3 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'kotlinx-serialization'
android {
compileSdk 33
compileSdk 34
namespace 'com.nextcloud.talk'
@ -141,7 +141,7 @@ ext {
androidxCameraVersion = "1.2.3"
coilKtVersion = "2.4.0"
daggerVersion = "2.48.1"
emojiVersion = "1.3.0"
emojiVersion = "1.4.0"
lifecycleVersion = '2.6.2'
okhttpVersion = "4.11.0"
markwonVersion = "4.6.2"

View File

@ -176,7 +176,7 @@ class MicInputCloud(context: Context, attrs: AttributeSet) : View(context, attrs
private val ovalTwoPath: Path = Path()
private val ovalThreePath: Path = Path()
override fun onDraw(canvas: Canvas?) {
override fun onDraw(canvas: Canvas) {
super.onDraw(canvas)
circlePath.apply {
addCircle(centerX, centerY, DEFAULT_RADIUS, Path.Direction.CCW)

View File

@ -83,7 +83,7 @@ class WaveformSeekBar : AppCompatSeekBar {
}
}
override fun onDraw(canvas: Canvas?) {
override fun onDraw(canvas: Canvas) {
if (waveData.isEmpty() || waveData[0].toString() == "NaN") {
super.onDraw(canvas)
} else {