Skip to content

[BUG] CameraView preview doesn't rotate on certain Android devices #3015

@AugPav

Description

@AugPav

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

The preview completely ignores device rotation - it never rotates under any circumstances.
At the beginning of the video, it shows that rotation works correctly on this device.

Equipo: Samsung Galaxy Flip 5 (SM-F731B)
Android: 16

https://youtube.com/shorts/rOgxA4fXTng

Expected Behavior

When rotating the device, the preview should rotate accordingly.

https://www.youtube.com/shorts/aQAbBkdszT4

  • Equipo: Samsung Galaxy Flip 7 Fe (SM-F761B)
    Android: 16
  • Equipo: Samsung GalaxyA03 Core (SM-032M)
    Android: 13

Steps To Reproduce

1 - Build and run onAndroid: https://github.com/CommunityToolkit/Maui/blob/main/samples/CommunityToolkit.Maui.Sample.sln
2 - Select Views => CameraView Page

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui/blob/main/samples/CommunityToolkit.Maui.Sample.sln

Environment

Net Maui 10   
Xamarin.AndroidX.Camera.Camera2 Version="1.4.2.3
Xamarin.AndroidX.Camera.View Version="1.4.2.3
Xamarin.AndroidX.Camera.Extensions Version="1.4.2.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions