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

OmniBar.refreshState: Don't layoutIfNeeded if... not needed #3671

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

graeme
Copy link
Contributor

@graeme graeme commented Dec 4, 2024

Task/Issue URL: https://app.asana.com/0/414709148257752/1208881366194997/f

Description:

OmniBar.refreshState is crashing when called as part of setting up the initial UI stack. It's specifically the layoutIfNeeded call that is crashing so I'm going to see if removing this when initially creating the views has an effect. After all, it shouldn't be needed in that case.

Steps to test this PR:

  1. Launch the app a few times, altering the text in the OmniBar each time.
  2. Generally try breaking this.

Definition of Done (Internal Only):

Copy Testing:

  • Use of correct apostrophes in new copy, ie rather than '

Orientation Testing:

  • Portrait
  • Landscape

Device Testing:

  • iPhone SE (1st Gen)
  • iPhone 8
  • iPhone X
  • iPhone 14 Pro
  • iPad

OS Testing:

  • iOS 15
  • iOS 16
  • iOS 17

Theme Testing:

  • Light theme
  • Dark theme

Internal references:

Software Engineering Expectations
Technical Design Template

@graeme graeme requested a review from samsymons December 4, 2024 15:21
Copy link
Contributor

@samsymons samsymons left a comment

Choose a reason for hiding this comment

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

Overall this works for me, though I'll leave it to you regarding whether we want to proceed with this change since per discussion in Asana it's looking like this crash has an unrelated cause.

Copy link

This PR has been inactive for more than 7 days and will be automatically closed 7 days from now.

@github-actions github-actions bot added the stale label Dec 13, 2024
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.

2 participants