removed runtime check for WRITE_EXTERNAL_STORAGE at 'take a phot' time which is not required for taking a photo

This commit is contained in:
gavine99
2025-01-29 14:28:52 +11:00
parent 693533a307
commit a4b0db56ca
@@ -528,12 +528,8 @@ class ComposeViewModel @Inject constructor(
view.cameraIntent view.cameraIntent
.autoDisposable(view.scope()) .autoDisposable(view.scope())
.subscribe { .subscribe {
if (permissionManager.hasStorage()) { newState { copy(attaching = false) }
newState { copy(attaching = false) } view.requestCamera()
view.requestCamera()
} else {
view.requestStoragePermission()
}
} }
// pick a photo (specifically) from image provider apps // pick a photo (specifically) from image provider apps