@@ -53,6 +53,12 @@ private static Intent createGalleryIntent(@NonNull Context context, int type) {
53
53
.putExtra (Intent .EXTRA_ALLOW_MULTIPLE , configuration (context ).allowsMultiplePickingInGallery ());
54
54
}
55
55
56
+ /**
57
+ * CreateCustomSectorIntent, creates intent for custom selector activity.
58
+ * @param context
59
+ * @param type
60
+ * @return Custom selector intent
61
+ */
56
62
private static Intent createCustomSelectorIntent (@ NonNull Context context , int type ) {
57
63
storeType (context , type );
58
64
return new Intent (context , CustomSelectorActivity .class );
@@ -215,6 +221,10 @@ private static void onPictureReturnedFromDocuments(Intent data, Activity activit
215
221
}
216
222
}
217
223
224
+ /**
225
+ * onPictureReturnedFromCustomSelector.
226
+ * Retrieve and forward the images to upload wizard through callback.
227
+ */
218
228
private static void onPictureReturnedFromCustomSelector (Intent data , Activity activity , @ NonNull FilePicker .Callbacks callbacks ) {
219
229
try {
220
230
List <UploadableFile > files = getFilesFromCustomSelector (data , activity );
@@ -225,6 +235,10 @@ private static void onPictureReturnedFromCustomSelector(Intent data, Activity ac
225
235
}
226
236
}
227
237
238
+ /**
239
+ * Get files from custom selector
240
+ * Retrieve and process the selected images from the custom selector.
241
+ */
228
242
private static List <UploadableFile > getFilesFromCustomSelector (Intent data , Activity activity ) throws IOException , SecurityException {
229
243
List <UploadableFile > files = new ArrayList <>();
230
244
ArrayList <Image > images = data .getParcelableArrayListExtra ("Images" );
0 commit comments