Skip to content

Prepare for adding values to AppLifecycleState - #119954

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
gspencergoog:prep_for_app_lifecycle
Apr 8, 2023
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
gspencergoog:prep_for_app_lifecycle

Conversation

@gspencergoog

@gspencergoog gspencergoog commented Feb 3, 2023 •

Copy link
Copy Markdown
Contributor

Description

This adds necessary default cases to two switch statements that look at AppLifecycleState. The defaults need to be added temporarily so that a new state hidden can be added to the engine side without breaking the framework build. The default:s will be removed once those new states are available.

See this design doc for more information.

Related Issues

Tests

  • Refactor with no semantic changes.

@flutter-dashboard flutter-dashboard Bot added a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Feb 3, 2023
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie

Hixie commented Feb 3, 2023

Copy link
Copy Markdown
Contributor

test-exempt: code refactor with no semantic change

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@goderbauer

Copy link
Copy Markdown
Member

(triage): Should this get submitted or is it waiting on something?

@gspencergoog

Copy link
Copy Markdown
Contributor Author

I was waiting until I was a little closer to landing the engine change, to reduce the amount of time that the default clauses were out there before they were replaced.

@gspencergoog
gspencergoog marked this pull request as draft March 21, 2023 22:20
@gspencergoog
gspencergoog force-pushed the prep_for_app_lifecycle branch from f8491f3 to 9134276 Compare April 8, 2023 01:07
@gspencergoog
gspencergoog marked this pull request as ready for review April 8, 2023 01:14
@gspencergoog
gspencergoog force-pushed the prep_for_app_lifecycle branch from 9134276 to 7433ae9 Compare April 8, 2023 01:15
@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 8, 2023
@auto-submit
auto-submit Bot merged commit ba097e2 into flutter:master Apr 8, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 8, 2023
exaby73 pushed a commit to NevercodeHQ/flutter that referenced this pull request Apr 17, 2023
Prepare for adding values to AppLifecycleState
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems autosubmit Merge PR when tree becomes green via auto submit App framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants