Skip to content

Commit

Permalink
removed runtime check for WRITE_EXTERNAL_STORAGE at 'take a phot' tim…
Browse files Browse the repository at this point in the history
…e which is not required for taking a photo
  • Loading branch information
gavine99 committed Jan 29, 2025
1 parent 693533a commit a4b0db5
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,12 +528,8 @@ class ComposeViewModel @Inject constructor(
view.cameraIntent
.autoDisposable(view.scope())
.subscribe {
if (permissionManager.hasStorage()) {
newState { copy(attaching = false) }
view.requestCamera()
} else {
view.requestStoragePermission()
}
newState { copy(attaching = false) }
view.requestCamera()
}

// pick a photo (specifically) from image provider apps
Expand Down

0 comments on commit a4b0db5

Please sign in to comment.