Skip to content

Commit 697c0e6

Browse files
RemiMabsoutGfenrir
andauthored
Bug fixed by adding setCancelable(false) (#343)
Co-authored-by: Rémi <[email protected]>
1 parent 81bb6e7 commit 697c0e6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1010
- `Security` in case of vulnerabilities.
1111

1212
## [x.x.x] - unreleased
13-
13+
### Fixed
14+
- Fix disable closing AlertDialog when touching outside the dialog [#334](https://github.com/CanHub/Android-Image-Cropper/issues/334)
1415
## [4.2.0] - 21/03/2022
1516
### Added
1617
- Added an option to skip manual editing and return entire image when required [#324](https://github.com/CanHub/Android-Image-Cropper/pull/324)

cropper/src/main/java/com/canhub/cropper/CropImageActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ open class CropImageActivity :
115115
*/
116116
open fun showImageSourceDialog(openSource: (Source) -> Unit) {
117117
AlertDialog.Builder(this)
118+
.setCancelable(false)
118119
.setTitle(R.string.pick_image_chooser_title)
119120
.setItems(
120121
arrayOf(

0 commit comments

Comments
 (0)