From 87f59a86d453c8bcf4f5db0fb21259083b0d2d76 Mon Sep 17 00:00:00 2001 From: Jonathan Dick Date: Mon, 15 Jan 2024 13:30:06 -0500 Subject: [PATCH] Fix Android MediaPicker Photo capture logic (#19844) * Use result stream for photo/video source in sample * Use old capture photo logic In https://github.com/dotnet/maui/pull/18620 we changed the photo capture logic along with the video. The photo logic should have stayed how it was, this splits things out a bit so that the two paths are a bit more obviously separate, and reverts back to the older photo capture logic. --- .../samples/Samples/View/MediaPickerPage.xaml | 4 +- .../Samples/ViewModel/MediaPickerViewModel.cs | 52 +++++-------- .../src/MediaPicker/MediaPicker.android.cs | 78 +++++++++++++------ 3 files changed, 75 insertions(+), 59 deletions(-) diff --git a/src/Essentials/samples/Samples/View/MediaPickerPage.xaml b/src/Essentials/samples/Samples/View/MediaPickerPage.xaml index d5e4feb61af9..60bc46216822 100644 --- a/src/Essentials/samples/Samples/View/MediaPickerPage.xaml +++ b/src/Essentials/samples/Samples/View/MediaPickerPage.xaml @@ -18,8 +18,8 @@