@@ -95,7 +95,7 @@ public async Task<FileResult> CaptureAsync(MediaPickerOptions options, bool phot
95
95
return null ;
96
96
}
97
97
}
98
-
98
+
99
99
async Task < FileResult > PickUsingIntermediateActivity ( MediaPickerOptions options , bool photo )
100
100
{
101
101
var intent = new Intent ( Intent . ActionGetContent ) ;
@@ -157,7 +157,7 @@ async Task<List<FileResult>> PickMultipleUsingPhotoPicker(MediaPickerOptions opt
157
157
var singleResult = await PickUsingPhotoPicker ( options , photo ) ;
158
158
return singleResult is not null ? [ singleResult ] : [ ] ;
159
159
}
160
-
160
+
161
161
var pickVisualMediaRequestBuilder = new PickVisualMediaRequest . Builder ( )
162
162
. SetMediaType ( photo ? ActivityResultContracts . PickVisualMedia . ImageOnly . Instance : ActivityResultContracts . PickVisualMedia . VideoOnly . Instance ) ;
163
163
@@ -179,7 +179,7 @@ async Task<List<FileResult>> PickMultipleUsingPhotoPicker(MediaPickerOptions opt
179
179
180
180
var resultList = new List < FileResult > ( ) ;
181
181
182
- for ( var i = 0 ; i < androidUris . Size ( ) ; i ++ )
182
+ for ( var i = 0 ; i < androidUris . Size ( ) ; i ++ )
183
183
{
184
184
var uri = androidUris . Get ( i ) as AndroidUri ;
185
185
if ( ! uri ? . Equals ( AndroidUri . Empty ) ?? false )
@@ -233,7 +233,7 @@ void OnResult(Intent intent)
233
233
234
234
return path ;
235
235
}
236
-
236
+
237
237
async Task < List < FileResult > > PickMultipleUsingIntermediateActivity ( MediaPickerOptions options , bool photo )
238
238
{
239
239
var intent = new Intent ( Intent . ActionGetContent ) ;
@@ -251,7 +251,7 @@ async Task<List<FileResult>> PickMultipleUsingIntermediateActivity(MediaPickerOp
251
251
}
252
252
253
253
var pickerIntent = Intent . CreateChooser ( intent , options ? . Title ) ;
254
-
254
+
255
255
if ( pickerIntent is null )
256
256
{
257
257
return [ ] ;
@@ -265,7 +265,7 @@ void OnResult(Intent resultIntent)
265
265
// The uri returned is only temporary and only lives as long as the Activity that requested it,
266
266
// so this means that it will always be cleaned up by the time we need it because we are using
267
267
// an intermediate activity.
268
-
268
+
269
269
if ( resultIntent . ClipData is null )
270
270
{
271
271
// Single selection result
@@ -276,7 +276,7 @@ void OnResult(Intent resultIntent)
276
276
}
277
277
}
278
278
else
279
- {
279
+ {
280
280
for ( var i = 0 ; i < resultIntent . ClipData . ItemCount ; i ++ )
281
281
{
282
282
var uri = resultIntent . ClipData . GetItemAt ( i ) ? . Uri ;
0 commit comments