Skip to content

feat(review-reminders): edge to edge support - #21582

Draft
david-allison wants to merge 11 commits into
ankidroid:mainfrom
david-allison:edge-to-edge-schedule-reminders-cleanup
Draft

feat(review-reminders): edge to edge support#21582
david-allison wants to merge 11 commits into
ankidroid:mainfrom
david-allison:edge-to-edge-schedule-reminders-cleanup

Conversation

@david-allison

@david-allison david-allison commented Aug 23, 2026

Copy link
Copy Markdown
Member

Blocked by dependency Currently blocked by some other dependent / related change This has been split into:

Note

Assisted-by: Claude Fable 5

Purpose / Description

ScheduleRemindersFragment and ReminderTroubleshootingFragment needed edge to edge support

Fixes

Approach

Before starting, consume the insets which will be passed to the fragments, then set the insets on a per-element basis.

There was lots of experimentation here to get the screenshots working correctly (ensuring the toolbars extended into the cutouts, ensuring scrolling), each is split into a separate commit.

I have a follow-up implemented for 'Settings', but this PR is already too large:

How Has This Been Tested?

Screenshot tests are added.

API 37

image
image
image ---- image

Learning

  • FragmentHost made this difficult

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

The study options containers are padded with the system bar insets,
consuming them means they will not be applied twice.

Non-functional prep for removing FragmentHost.supportsEdgeToEdge.

Part of 17334
Part of 21519

Assisted-by: Claude Fable 5
Helper for Insets which provides the initial insets to the lambda

Issue 17334

Assisted-by: Claude Fable 5
Issue 17334

Assisted-by: Claude Fable 5
@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Snapshot diff report vs main. Open screenshot-diff for diffs.

  • ReviewRemindersScreenshotTest: 11 changes
All 11 changed screenshots

ReviewRemindersScreenshotTest

  • settingsHostTablet_scheduleReminders_compare.png
  • settingsHostTablet_troubleshooting_compare.png
  • settingsHost_landscapeCutout_collapsed_compare.png
  • settingsHost_landscapeCutout_compare.png
  • settingsHost_landscapeCutout_rtl_compare.png
  • settingsHost_scheduleReminders_compare.png
  • settingsHost_scheduleReminders_scrolled_compare.png
  • standaloneActivityHost_scheduleReminders_compare.png
  • standaloneActivityHost_systemBars_compare.png
  • standaloneActivityHost_systemBars_scrolledToEnd_compare.png
  • standaloneActivityHost_troubleshooting_systemBars_compare.png

@david-allison david-allison added the Needs Author Reply Waiting for a reply from the original author label Aug 23, 2026
@david-allison

Copy link
Copy Markdown
Member Author

macOS failure looks legit

@david-allison
david-allison force-pushed the edge-to-edge-schedule-reminders-cleanup branch from 9d974cf to e0780d1 Compare August 24, 2026 00:08
Issue 17334, 21519

Assisted-by: Claude Fable 5
Issue 17334, 21519 - edge to edge

Assisted-by: Claude Fable 5
Baseline captures across the FragmentHosts, with simulated system
bars: the edge-to-edge fixes then show up as image diffs.

Adds an id to the troubleshooting scroll view so the test can
scroll it.

Issue 17334, 21519

Assisted-by: Claude Fable 5
The fragments now unconditionally fit the system windows:
 the host activities consume the insets.

Issue 17334
Part of 21519

Assisted-by: Claude Fable 5
Part of 17334
Part of 21519

Assisted-by: Claude Fable 5
* Removes the black bar in landscape mode
* Troubleshooting content renders underneath the bottom bar

Part of 17334
Part of 21519

Assisted-by: Claude Fable 5
The content of the toolbar in landscape mode of a phone overlapped with
the display cutout.

Part of 17334

Assisted-by: Claude Fable 5
The decor consumed the navigation bar inset, so scrolled content
 did not render underneath the nav bar.

Part of 17334
Fixes 21519

Assisted-by: Claude Fable 5
@david-allison
david-allison force-pushed the edge-to-edge-schedule-reminders-cleanup branch from e0780d1 to b42c9cf Compare August 24, 2026 00:34
@david-allison david-allison added Blocked by dependency Currently blocked by some other dependent / related change and removed Needs Author Reply Waiting for a reply from the original author labels Aug 24, 2026
@david-allison
david-allison marked this pull request as draft August 24, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Blocked by dependency Currently blocked by some other dependent / related change Needs Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edge to edge: clean up ScheduleRemindersFragment

1 participant