Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28703 from weilonge/seanlee/STK/v2.1s/Bug1117663
Browse files Browse the repository at this point in the history
Bug 1117663 -  TR 0x04 should be sent if no icon can be shown. r=frsela
  • Loading branch information
weilonge committed Mar 9, 2015
2 parents 921b7d2 + b876001 commit 485b69e
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions apps/system/js/icc_worker.js
Expand Up @@ -251,9 +251,15 @@ var icc_worker = {
}

if (options.responseNeeded) {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK
});
if (options.iconSelfExplanatory || options.icons) {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_PRFRMD_ICON_NOT_DISPLAYED
});
} else {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK
});
}
icc.confirm(message, options.text, timeout, null);
} else {
icc.confirm(message, options.text, timeout,
Expand All @@ -270,9 +276,15 @@ var icc_worker = {
});
} else {
DUMP('Alert closed');
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK
});
if (options.iconSelfExplanatory || options.icons) {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_PRFRMD_ICON_NOT_DISPLAYED
});
} else {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK
});
}
}
});
}
Expand Down

0 comments on commit 485b69e

Please sign in to comment.