Skip to content

fix: allow title and location fields to wrap long text#1178

Open
faraz152 wants to merge 1 commit intoFossifyOrg:mainfrom
faraz152:fix/wrap-long-title-location
Open

fix: allow title and location fields to wrap long text#1178
faraz152 wants to merge 1 commit intoFossifyOrg:mainfrom
faraz152:fix/wrap-long-title-location

Conversation

@faraz152
Copy link
Copy Markdown

Summary

Closes #1177

Both the Title and Location fields in the event editor had android:maxLines="1", which caused long text to scroll horizontally and be clipped rather than wrapping to a new line.

Root cause

android:maxLines="1" on an EditText forces the field to display only one line of text with overflow hidden. It does not affect input behaviour — users cannot type newlines, but the field should wrap visually when populated with long data from a CalDAV sync.

Fix

Remove android:maxLines="1" from event_title and event_location in activity_event.xml.

  • event_title (inputType="textCapSentences") — single-line input is preserved by inputType; text now wraps visually across lines.
  • event_location (inputType="textCapWords") — same; autocomplete continues to work normally.

No Kotlin/Java changes. This is a 2-line XML deletion.

Test plan

  • Create or import an event with a long title (100+ chars) — field wraps instead of clipping
  • Create or import an event with a long location — field wraps instead of clipping
  • Short titles/locations still display on one line (no regression)
  • Autocomplete still works on the Location field
  • Enter key on Title still moves focus to next field

Remove android:maxLines="1" from event_title and event_location so
that long titles and locations wrap across multiple lines instead of
being clipped. The fields remain single-line inputs (no newlines),
only the visual display now wraps correctly.

Fixes FossifyOrg#1177
@faraz152 faraz152 requested a review from naveensingh as a code owner April 30, 2026 12:06
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.

Wrap very long title and location fields

1 participant