mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-09-01 06:35:09 +00:00
Fix progress not being displayed when 0%
This commit is contained in:
@@ -227,7 +227,7 @@ public class SharePlugin extends Plugin {
|
|||||||
boolean successful = true;
|
boolean successful = true;
|
||||||
try {
|
try {
|
||||||
byte data[] = new byte[1024];
|
byte data[] = new byte[1024];
|
||||||
long progress = 0, prevProgressPercentage = 0;
|
long progress = 0, prevProgressPercentage = -1;
|
||||||
int count;
|
int count;
|
||||||
while ((count = input.read(data)) >= 0) {
|
while ((count = input.read(data)) >= 0) {
|
||||||
progress += count;
|
progress += count;
|
||||||
|
Reference in New Issue
Block a user