updating commons with PhoneNumber containing multiple fields

This commit is contained in:
tibbi 2022-02-06 22:44:20 +01:00
parent 07e906e19c
commit 591f473a1f
10 changed files with 39 additions and 31 deletions

View file

@ -117,7 +117,7 @@ class ImageCompressor(private val context: Context) {
fun isSatisfied(imageFile: File): Boolean {
// If size requirement is not met and maxIteration is reached
if(iteration >= maxIteration && imageFile.length() >= maxFileSize) {
if (iteration >= maxIteration && imageFile.length() >= maxFileSize) {
throw Exception("Unable to compress image to targeted size")
}
return imageFile.length() <= maxFileSize
@ -180,5 +180,4 @@ class ImageCompressor(private val context: Context) {
}
}
}
}