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

Change the virtual display size restriction to warning #9110

Merged
merged 2 commits into from
May 30, 2019

Conversation

iskakaushik
Copy link
Contributor

- Fixes: flutter/flutter#33290

- This is so we don't block usecases where users show the platform
  view partially.

- flutter/flutter#31990 should address this
  issue more broadly.
@iskakaushik iskakaushik requested a review from amirh May 28, 2019 22:03
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 modulo updating the warning message

@@ -422,11 +422,11 @@ private static PointerCoords parsePointerCoords(Object rawCoords, float density)
private void validateVirtualDisplayDimensions(int width, int height) {
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
if (height > metrics.heightPixels || width > metrics.widthPixels) {
String error = "Creating a virtual display of size: "
String message = "Creating a virtual display of size: "
+ "[" + width + ", " + height + "]"
+ " is not supported. It is larger than the device screen size: "
Copy link
Contributor

Choose a reason for hiding this comment

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

We should probably update the message(it is supported, up to a limit...)

Choose a reason for hiding this comment

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

@amirh How can we solve this issue ? And we should use flutter dev or stable ?

@iskakaushik iskakaushik merged commit d479412 into flutter:master May 30, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 30, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request May 30, 2019
flutter/engine@4c4c0f8...fa9b5bd

git log 4c4c0f8..fa9b5bd --no-merges --oneline
fa9b5bd Reduce pipeline depth when GPU and Platform are same thread (flutter/engine#9132)
d479412 Change the virtual display size restriction to warning (flutter/engine#9110)

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 (cbracken@google.com), and stop
the roller if necessary.
huqiuser pushed a commit to huqiuser/engine that referenced this pull request Jun 12, 2019
* Change the virtual display size restriction to warning

- Fixes: flutter/flutter#33290

- This is so we don't block usecases where users show the platform
  view partially.

- flutter/flutter#31990 should address this
  issue more broadly.

* Fix error message
kiku-jw pushed a commit to kiku-jw/flutter that referenced this pull request Jun 14, 2019
flutter/engine@4c4c0f8...fa9b5bd

git log 4c4c0f8..fa9b5bd --no-merges --oneline
fa9b5bd Reduce pipeline depth when GPU and Platform are same thread (flutter/engine#9132)
d479412 Change the virtual display size restriction to warning (flutter/engine#9110)

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 (cbracken@google.com), and stop
the roller if necessary.
@BeshoyAdelHemaya
Copy link

how can i change it and override the method

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.

[Android] Full screen Platform View fails on fullscreen devices with notch
4 participants