-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix: support to set layout direction for hybrid composition platform view #30611
Conversation
|
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. 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 Could you please review this RP? thanks. |
shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java
Outdated
Show resolved
Hide resolved
shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java
Show resolved
Hide resolved
shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java
Show resolved
Hide resolved
71c5ece to
342682e
Compare
|
@blasten @chinmaygarde hello, I have fixed it, Could you have any other suggestions?😌 |
blasten
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.
lgtm
|
This pull request is not suitable for automatic merging in its current state.
|
On android platform, virtual display platform view can set direction layout correctly, but hybrid composition will fail and throw an NullPointerException as flutter/flutter#96003 shown, this PR fixes it.
Besides, if a virtual display platform view is not found with specified viewId,
vdControllers.get(viewId)will be null, so an NPE will also occur, this PR also fixes it.Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.