Merge "Parse UUID string with Long.parseLong"
This commit is contained in:
@@ -216,7 +216,7 @@ public class StorageVolume implements Parcelable {
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return Integer.parseInt(mUuid.replace("-", ""), 16);
|
return (int)Long.parseLong(mUuid.replace("-", ""), 16);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user