Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@slightfoot
Copy link
Member

@slightfoot slightfoot commented Jun 17, 2019

edited by amirh@

Add views that are added directly to a platform view's window as siblings to the platform view's container view, rather than as children of a full screen container.

This prevents a false-negative for a visibility check from a specific ads SDK (Teads), which reported the following warning:

W/teads#Visibility(17978): The Teads AdView is visible at 0%, hidded by 1 View(s):
W/teads#Visibility(17978):   -  View of class io.flutter.plugin.platform.SingleViewPresentation$FakeWindowViewGroup, with id: -1, with contentDescription: null, with a size of: [width: 1050, height: 875] is hidding 100% of the ad

original description

This code is untested. A test build of the engine needs to be created so that commentors of the issue can verify it resolves their ad-display issues.

flutter/flutter#12114

@amirh
Copy link
Contributor

amirh commented Jun 20, 2019

Just to set the expectations correctly: this isn't fixing the issue of embedding ads as platform views which is broader(the root cause there is the virtual display), we are working with relevant teams on a solution there but it will take time.

I'm merging this as I do not see harm in this change, and it's a net improvement if it prevents a false-negative for a specific visibility check of a specific ad provider(again I don't expect that specific ad provider nor the Google Mobile Ads SDK to be properly working with platform views following just this change)

Copy link
Contributor

@amirh amirh left a comment

Choose a reason for hiding this comment

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

LGTM

@amirh amirh changed the title Native Ad display fix for flutter/flutter#12114 Avoid a full screen overlay within virtual displays Jun 20, 2019
@amirh amirh merged commit 0c874c6 into flutter:master Jun 20, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 21, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jun 21, 2019
flutter/engine@3b52992...0c874c6

git log 3b52992..0c874c6 --no-merges --oneline
0c874c6 Avoid a full screen overlay within virtual displays (flutter/engine#9343)
605c63b Roll src/third_party/skia 384981be3dd2..0c64a545176a (11 commits) (flutter/engine#9404)
7a5ec8d Remove build flags for dynamic patching (flutter/engine#9394)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff ([email protected]), and stop
the roller if necessary.
amirh added a commit that referenced this pull request Jun 28, 2019
amirh added a commit that referenced this pull request Jun 28, 2019
johnsonmh pushed a commit to johnsonmh/flutter that referenced this pull request Jul 30, 2019
flutter/engine@3b52992...0c874c6

git log 3b52992..0c874c6 --no-merges --oneline
0c874c6 Avoid a full screen overlay within virtual displays (flutter/engine#9343)
605c63b Roll src/third_party/skia 384981be3dd2..0c64a545176a (11 commits) (flutter/engine#9404)
7a5ec8d Remove build flags for dynamic patching (flutter/engine#9394)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff ([email protected]), and stop
the roller if necessary.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants