Merge "media Utils: remove parse integer logspam" into mnc-dev
This commit is contained in:
@@ -209,6 +209,9 @@ class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int parseIntSafely(Object o, int fallback) {
|
static int parseIntSafely(Object o, int fallback) {
|
||||||
|
if (o == null) {
|
||||||
|
return fallback;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
String s = (String)o;
|
String s = (String)o;
|
||||||
return Integer.parseInt(s);
|
return Integer.parseInt(s);
|
||||||
|
|||||||
Reference in New Issue
Block a user