Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CurrentOrientation is reversed on some Android tablets #25

Open
Huaba93 opened this issue May 12, 2020 · 0 comments
Open

CurrentOrientation is reversed on some Android tablets #25

Huaba93 opened this issue May 12, 2020 · 0 comments
Labels

Comments

@Huaba93
Copy link

Huaba93 commented May 12, 2020

CrossDeviceOrientation.Current.CurrentOrientation is reversed on some Android tablets. I guess this is because some tablets are in landscape mode by default. We could reproduce this with:

  • Sony Xperia Tablet Z2 (android 5.1.1)
  • Google pixel c (android 8.1.0)
  • Google Nexus 10 (android 5.1.1)
  • Samsung Galaxy Tab 4

I suspect there are many more devices with this problem. We could't reproduce it with emulators or any smartphone.

activity.Resources.Configuration.Orientation returns Landscape

activity.WindowManager.DefaultDisplay.Rotation returns Rotation180 and is converted by your plugin to DeviceOrientations.PortraitFlipped but this is wrong.

activity.WindowManager.DefaultDisplay is deprecated since API Level 11, this should be replaced with a more recent solution

probably related to #10

@wcoder wcoder added the Android label May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants