Skip to content

Commit 35bb0a2

Browse files
[create-pull-request] automated change
1 parent 3903efe commit 35bb0a2

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Controls/src/Core/Handlers/Items/iOS/ItemsViewController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected override void Dispose(bool disposing)
8989
if (disposing)
9090
{
9191
ItemsSource?.Dispose();
92-
92+
9393
((IUIViewLifeCycleEvents)CollectionView).MovedToWindow -= MovedToWindow;
9494

9595
CollectionView.Delegate = null;

src/Essentials/src/MediaPicker/MediaPicker.android.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public async Task<FileResult> CaptureAsync(MediaPickerOptions options, bool phot
9595
return null;
9696
}
9797
}
98-
98+
9999
async Task<FileResult> PickUsingIntermediateActivity(MediaPickerOptions options, bool photo)
100100
{
101101
var intent = new Intent(Intent.ActionGetContent);
@@ -157,7 +157,7 @@ async Task<List<FileResult>> PickMultipleUsingPhotoPicker(MediaPickerOptions opt
157157
var singleResult = await PickUsingPhotoPicker(options, photo);
158158
return singleResult is not null ? [singleResult] : [];
159159
}
160-
160+
161161
var pickVisualMediaRequestBuilder = new PickVisualMediaRequest.Builder()
162162
.SetMediaType(photo ? ActivityResultContracts.PickVisualMedia.ImageOnly.Instance : ActivityResultContracts.PickVisualMedia.VideoOnly.Instance);
163163

@@ -179,7 +179,7 @@ async Task<List<FileResult>> PickMultipleUsingPhotoPicker(MediaPickerOptions opt
179179

180180
var resultList = new List<FileResult>();
181181

182-
for (var i = 0; i < androidUris.Size(); i++)
182+
for (var i = 0; i < androidUris.Size(); i++)
183183
{
184184
var uri = androidUris.Get(i) as AndroidUri;
185185
if (!uri?.Equals(AndroidUri.Empty) ?? false)
@@ -233,7 +233,7 @@ void OnResult(Intent intent)
233233

234234
return path;
235235
}
236-
236+
237237
async Task<List<FileResult>> PickMultipleUsingIntermediateActivity(MediaPickerOptions options, bool photo)
238238
{
239239
var intent = new Intent(Intent.ActionGetContent);
@@ -251,7 +251,7 @@ async Task<List<FileResult>> PickMultipleUsingIntermediateActivity(MediaPickerOp
251251
}
252252

253253
var pickerIntent = Intent.CreateChooser(intent, options?.Title);
254-
254+
255255
if (pickerIntent is null)
256256
{
257257
return [];
@@ -265,7 +265,7 @@ void OnResult(Intent resultIntent)
265265
// The uri returned is only temporary and only lives as long as the Activity that requested it,
266266
// so this means that it will always be cleaned up by the time we need it because we are using
267267
// an intermediate activity.
268-
268+
269269
if (resultIntent.ClipData is null)
270270
{
271271
// Single selection result
@@ -276,7 +276,7 @@ void OnResult(Intent resultIntent)
276276
}
277277
}
278278
else
279-
{
279+
{
280280
for (var i = 0; i < resultIntent.ClipData.ItemCount; i++)
281281
{
282282
var uri = resultIntent.ClipData.GetItemAt(i)?.Uri;

src/Essentials/src/MediaPicker/MediaPicker.ios.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Microsoft.Maui.Media
1717
partial class MediaPickerImplementation : IMediaPicker
1818
{
1919
static UIViewController PickerRef;
20-
20+
2121
public bool IsCaptureSupported
2222
=> UIImagePickerController.IsSourceTypeAvailable(UIImagePickerControllerSourceType.Camera);
2323

@@ -179,7 +179,7 @@ async Task<List<FileResult>> PhotosAsync(MediaPickerOptions options, bool photo,
179179
{
180180
return null;
181181
}
182-
182+
183183
if (!photo && !pickExisting)
184184
{
185185
await Permissions.EnsureGrantedAsync<Permissions.Microphone>();

0 commit comments

Comments
 (0)