mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Small improvement
This commit is contained in:
@@ -647,7 +647,9 @@ public class ContactInfo {
|
||||
int max = 0;
|
||||
for (String size : sizes.split(" ")) {
|
||||
int min = Integer.MAX_VALUE;
|
||||
for (String p : size.trim().split("[x|X]"))
|
||||
for (String p : size.trim().split("[x|X]")) {
|
||||
if (TextUtils.isEmpty(p))
|
||||
continue;
|
||||
try {
|
||||
int x = Integer.parseInt(p);
|
||||
if (x < min)
|
||||
@@ -655,6 +657,7 @@ public class ContactInfo {
|
||||
} catch (NumberFormatException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
}
|
||||
if (min != Integer.MAX_VALUE && min > max)
|
||||
max = min;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user