Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

CurrentOrientation is reversed on some Android tablets #25

Copy link
Copy link
Open
@Huaba93

Description

@Huaba93
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.