Merge "Parse UUID string with Long.parseLong"

This commit is contained in:
Marco Nelissen
2013-12-11 18:07:50 +00:00
committed by Gerrit Code Review

View File

@@ -216,7 +216,7 @@ public class StorageVolume implements Parcelable {
return -1;
}
try {
return Integer.parseInt(mUuid.replace("-", ""), 16);
return (int)Long.parseLong(mUuid.replace("-", ""), 16);
} catch (NumberFormatException e) {
return -1;
}