Add check before proceding to upload to fix multi upload
This commit is contained in:
parent
111182e9b0
commit
03cf950bab
|
@ -302,7 +302,7 @@ class PostCreationActivity : BaseActivity() {
|
|||
},
|
||||
{
|
||||
data.progress = 100
|
||||
if(photoData.all{it.progress == 100}){
|
||||
if(photoData.all{it.progress == 100 && it.uploadId != null}){
|
||||
binding.uploadProgressBar.visibility = View.GONE
|
||||
binding.uploadCompletedTextview.visibility = View.VISIBLE
|
||||
post()
|
||||
|
|
Loading…
Reference in New Issue