* commit '69b4670730ec557af6dc67f6c42aff20e5b0b86a': Parse UUID string with Long.parseLong
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user