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 #21113 from frsela/STK/Bug1015833_v1.3
Browse files Browse the repository at this point in the history
Bug 1015833 - [PTCRB][STK]27.22.4.1.1/2 DISPLAY TEXT, normal priority, Unpacked 8 bit data for Text String, screen busy case failed
  • Loading branch information
rvandermeulen committed Jun 27, 2014
2 parents 4fc9eab + de9cae9 commit b2af19b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/system/js/icc_worker.js
Expand Up @@ -217,6 +217,19 @@ var icc_worker = {
'0x21': function STK_CMD_DISPLAY_TEXT(command, iccManager) {
DUMP('STK_CMD_DISPLAY_TEXT:', command.options);
var options = command.options;

// Check if device is idle
var activeApp = AppWindowManager.getActiveApp();
if (!options.isHighPriority && !activeApp.isHomescreen) {
DUMP('Do not display the text because normal priority.');
iccManager.responseSTKCommand({
resultCode:
iccManager._iccManager.STK_RESULT_TERMINAL_CRNTLY_UNABLE_TO_PROCESS,
additionalInformation: 0x01
});
return;
}

if (options.responseNeeded) {
iccManager.responseSTKCommand({
resultCode: iccManager._iccManager.STK_RESULT_OK
Expand Down

0 comments on commit b2af19b

Please sign in to comment.