When creating a chatmail account, when logging in to an existing email account, and when importing a backup from the Welcome Activity, we're still showing "0%" even after this PR. So, an alternative to this PR would be to make percent > 0 ? String.format(Util.getLocale(), " %d%%", percent) : ""; into a function and call it from all these places, too, and never show "0%" anywhere ever again.
Mitigation for https://github.com/deltachat/deltachat-android/issues/3392, follow-up for https://github.com/deltachat/deltachat-android/pull/3337.
When creating a chatmail account, when logging in to an existing email account, and when importing a backup from the Welcome Activity, we're still showing "0%" even after this PR. So, an alternative to this PR would be to make
percent > 0 ? String.format(Util.getLocale(), " %d%%", percent) : "";
into a function and call it from all these places, too, and never show "0%" anywhere ever again.