googlesamples / googlesamples/mlkit

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

Open
#1,026 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

**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:

```xml

```

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

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.