Skip to content

Commit

Permalink
Don't show "0%" at the beginning when being added as second device (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hocuri authored Nov 5, 2024
1 parent 9679b22 commit 23458a6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public void handleEvent(@NonNull DcEvent event) {
} else if (permille < 1000) {
percent = permille/10;
percentMax = 100;
statusLineText = getString(R.string.transferring) + String.format(Util.getLocale(), " %d%%", percent);
String formattedPercent = percent > 0 ? String.format(Util.getLocale(), " %d%%", percent) : "";
statusLineText = getString(R.string.transferring) + formattedPercent;
hideSameNetworkHint = true;
} else if (permille == 1000) {
getTransferActivity().setTransferState(BackupTransferActivity.TransferState.TRANSFER_SUCCESS);
Expand Down

0 comments on commit 23458a6

Please sign in to comment.