2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Fix progress not being displayed when 0%

This commit is contained in:
Albert Vaca 2017-08-01 22:22:54 +02:00
parent 407ce1ccb0
commit f630ea3e3f

View File

@ -227,7 +227,7 @@ public class SharePlugin extends Plugin {
boolean successful = true;
try {
byte data[] = new byte[1024];
long progress = 0, prevProgressPercentage = 0;
long progress = 0, prevProgressPercentage = -1;
int count;
while ((count = input.read(data)) >= 0) {
progress += count;