Skip to content

Android - Camera not opening in some older devices #267

Open

Description

@inimirpaz

Describe the bug
In some older devices the camera won't open when the quality is set and is not Default. (Rather, the issue here is the resolution of the camera I guess). i.e. 2019's Samsung Galaxy A20.

The culript seems to be this line of code:

return new ResolutionStrategy(GetTargetResolution(quality), ResolutionStrategy.FallbackRuleClosestHigher);

Changing the fallback to ResolutionStrategy.FallbackRuleClosestHigherThenLower seems to do the trick.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions