Fix bug on progress step, found by integration test testBackupWithPassword()
This commit is contained in:
parent
b680e24938
commit
96af1957f9
@ -83,7 +83,7 @@ internal class MegolmSessionDataImporter @Inject constructor(private val olmDevi
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (progressListener != null) {
|
if (progressListener != null) {
|
||||||
val progress = 100 * cpt / totalNumbersOfKeys
|
val progress = 100 * (cpt + 1) / totalNumbersOfKeys
|
||||||
|
|
||||||
if (lastProgress != progress) {
|
if (lastProgress != progress) {
|
||||||
lastProgress = progress
|
lastProgress = progress
|
||||||
|
Loading…
x
Reference in New Issue
Block a user