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 #23956 from EdgarChen/bug_1065401/stk_get_inkey
Browse files Browse the repository at this point in the history
Bug 1065401 - [Gaia][STK] Put the result in isYesNo for the "Yes or No" GET_INKEY request. r=frsela
  • Loading branch information
BavarianTomcat committed Sep 16, 2014
2 parents 3465944 + b8e7475 commit 3ee96e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions apps/system/js/icc.js
Expand Up @@ -510,7 +510,7 @@ var icc = {
// Help
this.icc_input_btn_help.disabled = !options.isHelpAvailable;

if (!options.isYesNoRequired && !options.isYesNoRequested) {
if (!options.isYesNoRequested) {
this.icc_input.classList.remove('yesnomode');

// Workaround. See bug #818270. Followup: #895314
Expand Down Expand Up @@ -554,12 +554,12 @@ var icc = {
this.icc_input_btn_yes.onclick = function(event) {
clearInputTimeout();
self.hideViews();
callback(true, 1);
callback(true, true);
};
this.icc_input_btn_no.onclick = function(event) {
clearInputTimeout();
self.hideViews();
callback(true, 0);
callback(true, false);
};
}

Expand Down
15 changes: 11 additions & 4 deletions apps/system/js/icc_worker.js
Expand Up @@ -319,10 +319,17 @@ var icc_worker = {
});
} else {
DUMP('STK_CMD_GET_INPUT: Response = ', value);
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK,
input: value
});
if (typeof value === 'boolean') {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK,
isYesNo: value
});
} else {
icc.responseSTKCommand(message, {
resultCode: icc._iccManager.STK_RESULT_OK,
input: value
});
}
}
});
},
Expand Down

0 comments on commit 3ee96e9

Please sign in to comment.