1
0
mirror of https://gitlab.shinice.net/pixeldroid/PixelDroid synced 2024-12-25 06:23:58 +01:00

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

View File

@ -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()