Open abodea opened 1 month ago
When we’re exiting reader view, we already know that the original page was reader view compatible. We can use that as a hint to optimistically add the reader view icon immediately to avoid the shifting toolbar layout.
There is a chance that the original page was reader view compatible but was updated to become reader view incompatible while we were in reader view mode, but that send like a low probability and risk. To handle this case, we could still run the reader view check when exiting reader view to determine whether we should remove the reader view icon we optimistically added to the toolbar.
Here’s a recording of the bug.
https://github.com/user-attachments/assets/8964e8a6-c3eb-4111-aca3-877f404b62d5
➤ Diana Andreea Barladeanu commented:
Verified as fixed on v9000 (46854), with iPhone 15 (17.6).
Steps to reproduce
Expected behavior
The reader view icon should not shift around from the toolbar.
Actual behavior
The reader view icon shifts around when exiting the reader view mode.
Device & build information
Notes
Attachments:
https://github.com/user-attachments/assets/fca3c0b0-6405-4aa8-ac87-40d021621d01
┆Issue is synchronized with this Jira Task