mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1099053 - Fix setEccListProperty. r=hsinyi
This commit is contained in:
parent
a8765535da
commit
6fc6f807e2
@ -9,6 +9,12 @@ const DEFAULT_ECC_LIST = "112,911";
|
||||
function setEccListProperty(list) {
|
||||
log("Set property ril.ecclist: " + list);
|
||||
|
||||
// We should wrap empty |list| by ''. Otherwise, the entire command will be
|
||||
// "setprop ril.ecclist" which causus the command error.
|
||||
if (!list) {
|
||||
list = "''";
|
||||
}
|
||||
|
||||
let deferred = Promise.defer();
|
||||
try {
|
||||
emulator.runShellCmd(["setprop","ril.ecclist", list]).then(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user