Skip to content

Commit 59487fc

Browse files
committed
after PR, use last intent as target instead of first.
1 parent f83ebc6 commit 59487fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ public static Intent getPickImageChooserIntent(@NonNull Context context, CharSeq
178178
if (allIntents.isEmpty()) {
179179
target = new Intent();
180180
} else {
181-
target = allIntents.remove(0);
181+
target = allIntents.get(allIntents.size() - 1);
182+
allIntents.remove(allIntents.size() - 1);
182183
}
183184

184185
// Create a chooser from the main intent

0 commit comments

Comments
 (0)