Add check before proceding to upload to fix multi upload

This commit is contained in:
Matthieu 2021-01-25 18:18:56 +01:00
parent 111182e9b0
commit 03cf950bab
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class PostCreationActivity : BaseActivity() {
}, },
{ {
data.progress = 100 data.progress = 100
if(photoData.all{it.progress == 100}){ if(photoData.all{it.progress == 100 && it.uploadId != null}){
binding.uploadProgressBar.visibility = View.GONE binding.uploadProgressBar.visibility = View.GONE
binding.uploadCompletedTextview.visibility = View.VISIBLE binding.uploadCompletedTextview.visibility = View.VISIBLE
post() post()