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:
parent
407ce1ccb0
commit
f630ea3e3f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user