Skip to content

[Bug report] page limit is ignored #984

@kurthuwig

Description

@kurthuwig

When I configure

.setPageLimit(5)

I can still take more than 5 pictures.

To Reproduce

use these options to create the document scanner:

val options =
  GmsDocumentScannerOptions.Builder()
    .setGalleryImportAllowed(true)
    .setResultFormats(GmsDocumentScannerOptions.RESULT_FORMAT_JPEG)
    .setPageLimit(5)
    .setScannerMode(GmsDocumentScannerOptions.SCANNER_MODE_BASE)

Take pictures

Expected behavior

I can only take 5 pictures.

Actual behavior

I can take more than 5 pictures.

SDK Info:

  • com.google.android.gms:play-services-mlkit-document-scanner:16.0.0

Smartphone:

  • Pixel 10 and virtuall every other phone I've tried

Metadata

Metadata

Assignees

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