Allow remote images in upload (e.g. Nextcloud)

This commit is contained in:
Matthieu 2022-01-23 13:12:39 +01:00
parent cac1b48fa5
commit 699938a837
2 changed files with 1 additions and 2 deletions

View File

@ -336,7 +336,7 @@ class PostCreationActivity : BaseActivity() {
.subscribe { percentage ->
data.progress = percentage.toInt()
binding.uploadProgressBar.progress =
photoData.sumBy { it.progress ?: 0 } / photoData.size
photoData.sumOf { it.progress ?: 0 } / photoData.size
}
var postSub: Disposable? = null

View File

@ -320,7 +320,6 @@ class CameraFragment : Fragment() {
type = "image/*"
action = Intent.ACTION_GET_CONTENT
addCategory(Intent.CATEGORY_OPENABLE)
putExtra(Intent.EXTRA_LOCAL_ONLY, true)
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true)
uploadImageResultContract.launch(
Intent.createChooser(this, null)