Allow remote images in upload (e.g. Nextcloud)
This commit is contained in:
parent
cac1b48fa5
commit
699938a837
app/src/main/java/org/pixeldroid/app/postCreation
@ -336,7 +336,7 @@ class PostCreationActivity : BaseActivity() {
|
|||||||
.subscribe { percentage ->
|
.subscribe { percentage ->
|
||||||
data.progress = percentage.toInt()
|
data.progress = percentage.toInt()
|
||||||
binding.uploadProgressBar.progress =
|
binding.uploadProgressBar.progress =
|
||||||
photoData.sumBy { it.progress ?: 0 } / photoData.size
|
photoData.sumOf { it.progress ?: 0 } / photoData.size
|
||||||
}
|
}
|
||||||
|
|
||||||
var postSub: Disposable? = null
|
var postSub: Disposable? = null
|
||||||
|
@ -320,7 +320,6 @@ class CameraFragment : Fragment() {
|
|||||||
type = "image/*"
|
type = "image/*"
|
||||||
action = Intent.ACTION_GET_CONTENT
|
action = Intent.ACTION_GET_CONTENT
|
||||||
addCategory(Intent.CATEGORY_OPENABLE)
|
addCategory(Intent.CATEGORY_OPENABLE)
|
||||||
putExtra(Intent.EXTRA_LOCAL_ONLY, true)
|
|
||||||
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true)
|
putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true)
|
||||||
uploadImageResultContract.launch(
|
uploadImageResultContract.launch(
|
||||||
Intent.createChooser(this, null)
|
Intent.createChooser(this, null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user