Skip to content

Commit 415e7bd

Browse files
committed
Be explicit about Toast context
Fixes jdamcd#113
1 parent 78c28ab commit 415e7bd

File tree

1 file changed

+1
-1
lines changed
  • lib/src/main/java/com/soundcloud/android/crop

1 file changed

+1
-1
lines changed

lib/src/main/java/com/soundcloud/android/crop/Crop.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private static Intent getImagePicker() {
250250
}
251251

252252
private static void showImagePickerError(Context context) {
253-
Toast.makeText(context, R.string.crop__pick_error, Toast.LENGTH_SHORT).show();
253+
Toast.makeText(context.getApplicationContext(), R.string.crop__pick_error, Toast.LENGTH_SHORT).show();
254254
}
255255

256256
}

0 commit comments

Comments
 (0)