mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
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:
parent
6c01439e6d
commit
cbef8f7cdf
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user