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

Commit

Permalink
Merge pull request #1 from jaytilly/jt-fix-for-LG
Browse files Browse the repository at this point in the history
Fix for LG phones
  • Loading branch information
jtillyt authored Jul 3, 2019
2 parents 2d01825 + fdf9b44 commit e73338b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Media.Plugin/Android/IntentExtraExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ public static void UseBackCamera(this Intent intent)

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

//TODO: Test if we can use the GetExtra to check before setting. May still fix LG
//with less potential negative side-effects
//var val = intent.GetBooleanExtra(extraUserFront, false);
//if (val)
intent.PutExtra(extraUserFront, false);
}
}
}

0 comments on commit e73338b

Please sign in to comment.