Skip to content

Fix the notifications prompt button being cut off on large font and display sizes - #6479

Open
zwarm wants to merge 2 commits into
mainfrom
fix-cutoff-button-stay-up-to-date
Open

zwarm wants to merge 2 commits into
mainfrom
fix-cutoff-button-stay-up-to-date

Conversation

@zwarm

@zwarm zwarm commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Description

The "Stay up to date!" notifications prompt now scrolls when its content doesn't fit, so the Save Preferences button is always reachable instead of being squeezed or pushed off screen.

The prompt laid its content out in a fixed-height column that couldn't scroll. When the image, text, checkboxes and button were taller than the sheet — for example on a Pixel 5 or Pixel 9 with an enlarged font or display size, especially when the Newsletter row is shown to logged-in users — the button got whatever height was left: a thin blue bar with no label, or nothing at all.

The column now scrolls in both orientations. It keeps a minimum height equal to the sheet, so when everything fits, the layout is unchanged and the controls stay pinned to the bottom. The image and text keep their original sizes. The sheet uses a nested scroll interop connection (the same pattern as other bottom sheets in the app) so scrolling the content doesn't fight the sheet's drag-to-dismiss.

Landscape had the same problem (the checkboxes and button were clipped). There, the image now aligns to the top of the text so it's visible without scrolling at large font sizes, and there's a minimum gap between the message and the checkboxes.

Testing Instructions

The prompt appears on the Podcasts tab when notification permission hasn't been granted and the prompt hasn't been shown before. To see the Newsletter row, be logged in with an account that hasn't opted in to marketing emails. To reset after seeing it, clear the app's data, or on a debug build set notificationPromptAcknowledged to false in the app's shared preferences.

  1. On a phone such as a Pixel 5 or Pixel 9, set Settings > Display > Font size and Display size to a large value.
  2. Install the app, log in, and open the Podcasts tab so the "Stay up to date!" prompt appears.
  3. Scroll the prompt and confirm the checkboxes and the full Save Preferences button are reachable and tappable.
  4. Rotate to landscape and confirm the image is visible at the top and the button is reachable by scrolling.
  5. Set font and display size back to default and confirm the prompt looks as before, with the button pinned to the bottom.
  6. Drag the sheet down from the top of the content and confirm it still dismisses.

Screenshots or Screencast

UI changed — before/after screenshots to be added (Pixel 5 at 1.3x font before the fix, and portrait/landscape after).

Before Portrait Before Landscape
Alt desc Alt desc
Screen_recording_20261202_120837.mp4

Checklist

  • If this is a user-facing change, I have added an entry in CHANGELOG.md
  • Ensure the linter passes (./gradlew spotlessApply to automatically apply formatting/linting)
  • I have considered whether it makes sense to add tests for my changes
  • All strings that need to be localized are in modules/services/localization/src/main/res/values/strings.xml
  • Any jetpack compose components I added or changed are covered by compose previews
  • I have updated (or requested that someone edit) the Event Horizon schema to reflect any new or changed analytics.

I have tested any UI changes...

  • with different themes
  • with a landscape orientation
  • with the device set to have a large display and font size
  • for accessibility with TalkBack

🤖 Generated with Claude Code

zwarm and others added 2 commits December 2, 2026 12:14
The "Stay up to date!" prompt laid its content out in a fixed-height,
non-scrolling column. On devices like the Pixel 5 and Pixel 9 with an
enlarged font or display size, the content was taller than the sheet and
the Save Preferences button was squeezed to a thin bar or pushed off
screen entirely.

The column now scrolls in portrait and landscape. It keeps a minimum
height equal to the sheet, so when the content fits the layout is
unchanged and the controls stay pinned to the bottom. The sheet is wired
up with a nested scroll interop connection so scrolling the content
doesn't fight the bottom sheet's drag-to-dismiss.

In landscape the image now aligns to the top of the text so it's visible
without scrolling, and a minimum gap separates the message from the
checkboxes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zwarm zwarm added [Type] Bug Not functioning as intended. [Area] Notification labels Dec 2, 2026
@zwarm zwarm added this to the 8.27 milestone Dec 2, 2026
@zwarm
zwarm marked this pull request as ready for review December 2, 2026 17:25
@zwarm
zwarm requested a review from a team as a code owner December 2, 2026 17:25
@zwarm
zwarm requested review from geekygecko and removed request for a team December 2, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Notification [Type] Bug Not functioning as intended.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant