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 #19152 from frsela/STK/Bug999235
Browse files Browse the repository at this point in the history
Bug 999235 - STK: Gaia is sending random Terminal Response in response to proactive commands form the STK app., r=vingtetun
  • Loading branch information
Fernando Rodríguez Sela committed May 21, 2014
2 parents 9fac6e9 + 53f3dec commit dfef240
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions apps/settings/js/icc.js
Expand Up @@ -68,8 +68,14 @@
};
}

function returnToSettingsMainMenu() {
if (Settings) {
Settings.currentPanel = '#root';
}
}

function stkResTerminate(message) {
Settings.currentPanel = '#root';
returnToSettingsMainMenu();
responseSTKCommand(message, {
resultCode: iccManager.STK_RESULT_UICC_SESSION_TERM_BY_USER
}, true);
Expand All @@ -85,9 +91,7 @@
reqTimerGoBack.onsuccess = function icc_getTimerGoBackSuccess() {
goBackTimer.timeout = reqTimerGoBack.result['icc.goBackTimeout'];
goBackTimer.timer = setTimeout(function() {
if (Settings) {
Settings.currentPanel = '#root';
}
returnToSettingsMainMenu();
}, goBackTimer.timeout);
};
};
Expand All @@ -99,11 +103,9 @@
selectTimer.timeout = reqTimerSelect.result['icc.selectTimeout'];
selectTimer.timer = setTimeout(function() {
responseSTKCommand(message, {
resultCode: iccManager.STK_RESULT_NO_RESPONSE_FROM_USER
resultCode: iccManager.STK_RESULT_NO_RESPONSE_FROM_USER
}, true);
if (Settings) {
Settings.currentPanel = '#root';
}
returnToSettingsMainMenu();
}, selectTimer.timeout);
};
};
Expand Down

0 comments on commit dfef240

Please sign in to comment.