Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix positioning of toolbar in reader detail #21719

Open
wants to merge 7 commits into
base: trunk
Choose a base branch
from

Conversation

nbradbury
Copy link
Contributor

@nbradbury nbradbury commented Feb 27, 2025

Fixes #21718

Prior to this PR, the toolbar in reader detail was too low on Android 15 (Vanilla Ice Cream). The primary cause for this was not correctly consuming the window insets in BaseAppCompatActivity, which meant when ReaderDetailFragment adjusted the toolbar to account for the window insets, the insets were applied twice.

Resolving this uncovered the fact that BaseAppCompatActivity was more involved that it needed to be, so I greatly simplified it in this PR.

To test:

  • On an Android 15+ device verify the toolbar in reader detail is correctly positioned
  • Verify the same on an earlier device

Before and after shots of two screens below:

before1
before2

…sewhere (specifically, ReaderPostDetailFragment)
@dangermattic
Copy link
Collaborator

dangermattic commented Feb 27, 2025

1 Warning
⚠️ PR is not assigned to a milestone.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 27, 2025

Jetpack📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack Jetpack
FlavorJalapeno
Build TypeDebug
Versionpr21719-0a42f54
Commit0a42f54
Direct Downloadjetpack-prototype-build-pr21719-0a42f54.apk
Note: Google Login is not supported on these builds.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Feb 27, 2025

WordPress📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress WordPress
FlavorJalapeno
Build TypeDebug
Versionpr21719-0a42f54
Commit0a42f54
Direct Downloadwordpress-prototype-build-pr21719-0a42f54.apk
Note: Google Login is not supported on these builds.

Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.41%. Comparing base (c09844a) to head (0a42f54).

Additional details and impacted files
@@           Coverage Diff           @@
##            trunk   #21719   +/-   ##
=======================================
  Coverage   39.41%   39.41%           
=======================================
  Files        2122     2122           
  Lines       99570    99570           
  Branches    15324    15324           
=======================================
  Hits        39247    39247           
  Misses      56844    56844           
  Partials     3479     3479           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nbradbury nbradbury requested a review from dcalhoun February 27, 2025 18:36
@nbradbury nbradbury marked this pull request as ready for review February 27, 2025 18:36
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

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

Very nice! The test plan succeeded for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reader detail toolbar too low
4 participants