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

Commit

Permalink
Bug 1117663 - TR 0x04 should be sent if no icon can be shown.
Browse files Browse the repository at this point in the history
  • Loading branch information
weilonge authored and rvandermeulen committed Mar 17, 2015
1 parent e53469f commit 13c85d5
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions apps/system/js/icc_worker.js
Expand Up @@ -248,9 +248,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 @@ -267,9 +273,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 13c85d5

Please sign in to comment.