This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Fixes to make
EditorStyleText
work properly in Compose (#891
) * Fix link click detection. Before this, the `TextView` would consume the touch event even if no link or mention was clicked. * Fix race condition that incorrectly rendered the mentions, as they weren't being detected as mentions at all. * Add `TextStyle.lineHeight` property to modify line height. * Bump JNA library version.
- Loading branch information
1 parent
b9e98a6
commit 65b72e2
Showing
8 changed files
with
61 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
platforms/android/library/src/main/java/io/element/android/wysiwyg/utils/RustCleanerTask.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package io.element.android.wysiwyg.utils | ||
|
||
import timber.log.Timber | ||
import uniffi.wysiwyg_composer.Disposable | ||
|
||
internal class RustCleanerTask( | ||
private val disposable: Disposable, | ||
) : Runnable { | ||
override fun run() { | ||
Timber.d("Cleaning up disposable: $disposable") | ||
disposable.destroy() | ||
} | ||
} |