Skip to content

Rewrite Call Subject to Kotlin + Compose - #111

Merged
thestinger merged 2 commits into
GrapheneOS:mainfrom
sdsantos:call-subject
Oct 22, 2026
Merged

thestinger merged 2 commits into
GrapheneOS:mainfrom
sdsantos:call-subject

Conversation

@sdsantos

Copy link
Copy Markdown

@sdsantos
sdsantos requested review from RankoR and m4pl October 22, 2026 12:20
) {
OutlinedTextField(
value = subject,
onValueChange = { onSubjectChange(it.limit(subjectLimit, subjectEncoding)) },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When your string has max allowed length, inserting at the beginning, it will remove from the end; Also, if you have 15 ASCII characters and insert one unicode character, it will cut it, producing malformed unicode.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need to fix the first one, but the second looks quite important.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the first one, I don't think it's important, specially for this feature. But it's a detail that happens in limited text fields like the Group name for example. If we do address it, we should have an implementation that works across the board for all those text fields.

@sdsantos
sdsantos requested a review from RankoR October 22, 2026 16:49
@thestinger
thestinger merged commit d37b788 into GrapheneOS:main Oct 22, 2026
3 checks passed
@sdsantos
sdsantos deleted the call-subject branch October 22, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants