Skip to content

[Bug report] ML Kit Document Scanner should not fix activity orientation to portrait on Android 16/17 #1026

@fanwgwg

Description

@fanwgwg

Describe the bug
com.google.mlkit.vision.documentscanner.internal.GmsDocumentScanningDelegateActivity is declared with a fixed screen orientation (android:screenOrientation="PORTRAIT"), which causes Play Console to flag the app for large-screen compatibility issues.

As an app developer, I see this warning in Play Console:

Remove resizability and orientation restrictions in your app to support large screen devices
From Android 16, Android will ignore resizability and orientation restrictions for large screen devices, such as foldables and tablets. This may lead to layout and usability issues for your users.

Play Console reports the following restricted activities in my app:

<activity android:name="com.google.mlkit.vision.documentscanner.internal.GmsDocumentScanningDelegateActivity" android:screenOrientation="PORTRAIT" />

We're using com.google.android.gms:play-services-mlkit-document-scanner:16.0.0

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions