|
|
@ -647,7 +647,9 @@ public class ContactInfo {
|
|
|
|
int max = 0;
|
|
|
|
int max = 0;
|
|
|
|
for (String size : sizes.split(" ")) {
|
|
|
|
for (String size : sizes.split(" ")) {
|
|
|
|
int min = Integer.MAX_VALUE;
|
|
|
|
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 {
|
|
|
|
try {
|
|
|
|
int x = Integer.parseInt(p);
|
|
|
|
int x = Integer.parseInt(p);
|
|
|
|
if (x < min)
|
|
|
|
if (x < min)
|
|
|
@ -655,6 +657,7 @@ public class ContactInfo {
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
} catch (NumberFormatException ex) {
|
|
|
|
Log.w(ex);
|
|
|
|
Log.w(ex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
if (min != Integer.MAX_VALUE && min > max)
|
|
|
|
if (min != Integer.MAX_VALUE && min > max)
|
|
|
|
max = min;
|
|
|
|
max = min;
|
|
|
|
}
|
|
|
|
}
|
|
|
|