From f630ea3e3f3392e74eec16b9e79d2ca287c9dd90 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 1 Aug 2017 22:22:54 +0200 Subject: [PATCH] Fix progress not being displayed when 0% --- src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java index 48c60527..c155f7d1 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java @@ -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;