Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Fix for LG phone crashes when using camera #715

Merged
merged 6 commits into from
Jul 5, 2019

Conversation

jtillyt
Copy link
Contributor

@jtillyt jtillyt commented Jul 3, 2019

Some LG phones (LG v30 for sure) crash when setting the android.intent.extra.USE_FRONT_CAMERA extra to false when it is already false.

Please take a moment to fill out the following:

Fixes # .

Changes Proposed in this pull request:

  • Check that the extra is not true before actually setting to false. This solves the issue in all cases and does not break when switching between front and rear cameras.

James Thomas and others added 6 commits July 3, 2019 14:34
@jamesmontemagno jamesmontemagno merged commit 0e2d927 into jamesmontemagno:master Jul 5, 2019
@@ -27,7 +27,10 @@ public static void UseBackCamera(this Intent intent)

// Android API 25 and up
intent.PutExtra(extraBackPost25, 1);
intent.PutExtra(extraUserFront, false);

var val = intent.GetBooleanExtra(extraUserFront, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any idea when the Nuget package is going to be updated with this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants