BugFix:GnssConfiguration change parseInt to decode

Bug: 124134653
Test: Current Tests Pass.
Change-Id: I512ca4fb4bc4d231ebe5320cd1c323cb9fcecf5c
This commit is contained in:
gomo
2019-02-08 23:08:40 -08:00
parent 06233b1a35
commit ad2a2402e7

View File

@@ -367,7 +367,7 @@ class GnssConfiguration {
return defaultValue;
}
try {
return Integer.parseInt(valueString);
return Integer.decode(valueString);
} catch (NumberFormatException e) {
Log.e(TAG, "Unable to parse config parameter " + configParameter + " value: "
+ valueString + ". Using default value: " + defaultValue);