From 407ce1ccb02c1aecf4bf602e1f6ec98fbc5ea416 Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 1 Aug 2017 22:22:25 +0200 Subject: [PATCH] Make percentage be updated every 1% again, it seems to work. --- src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java index 12f6fb2a..48c60527 100644 --- a/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SharePlugin/SharePlugin.java @@ -234,10 +234,10 @@ public class SharePlugin extends Plugin { destinationOutput.write(data, 0, count); if (fileLength > 0) { if (progress >= fileLength) break; - long progressPercentage = (progress * 10 / fileLength); + long progressPercentage = (progress * 100 / fileLength); if (progressPercentage != prevProgressPercentage) { prevProgressPercentage = progressPercentage; - notification.setProgress((int) progressPercentage * 10); + notification.setProgress((int) progressPercentage); notification.show(); } }