-
Notifications
You must be signed in to change notification settings - Fork 6k
Set the 'visibility' of 'FlutterView' to the previous one in 'FragmentActivityAndFragment.onStart' #34601
Conversation
…tActivityAndFragment.onStart'
Nayuta403
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 with some ideas
| // onStart and onStop. | ||
| // See https://github.com/flutter/flutter/issues/93276 | ||
| flutterView.setVisibility(View.GONE); | ||
| if (flutterView.getVisibility() != View.GONE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (flutterView.getVisibility() != View.GONE) { |
I wonder if this judgment can be removed, or previousVisibility needs to be assigned again in else.
So let's say this is the case:
- First time the flutterView is
View.VISIBLE. WhenonStopis executed,previousVisibilitywill also becomeView.VISIBLE. - Second time I change the flutterView to
View.GONE. WhenonStopis executed, thepreviousVisibilitywill not be changed.
If onStart is executed at this time, previousVisibility remains as before, causes the flutterView to be View.VISIBLE(Even though I've changed to View.GONE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I'll remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…'FragmentActivityAndFragment.onStart' (flutter/engine#34601)
…tActivityAndFragment.onStart' (flutter#34601)
|
issues/105203 |
fix flutter/flutter#105203
Pre-launch Checklist
writing and running engine tests.
///).