diff options
author | Preeti Ahuja <preetia@codeaurora.org> | 2013-04-12 18:54:54 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2016-08-24 08:17:53 -0600 |
commit | 089adbb8055f1c60fd0a318e5b3c88bdc238b305 (patch) | |
tree | 8e0a9d1a40cc40157c7ced08c7ee37b3dc074bfa | |
parent | 213d2e4e71a584f384ae80c251cef629f39be72b (diff) | |
download | android_packages_apps_Stk-089adbb8055f1c60fd0a318e5b3c88bdc238b305.tar.gz android_packages_apps_Stk-089adbb8055f1c60fd0a318e5b3c88bdc238b305.tar.bz2 android_packages_apps_Stk-089adbb8055f1c60fd0a318e5b3c88bdc238b305.zip |
Stk: Add Support for alpha in REFRESH command.
RIL_UNSOL_STK_EVENT_NOTIFY is given by RIL in case there is alpha
id to be displayed to user in refresh proactive cmd.
Support is added to display Alpha id to user when this event comes
due to REFRESH proactive cmd.
Also if refresh mode is init or reset, idle mode text needs to be
cleared as per stk 3GPP spec 11.14. This logic is handled in stk
app to satisfy both the above requiremnts.
BUG=21559411
Change-Id: I277f27db200468dd8ca49dbf6959277f09db0c67
-rwxr-xr-x | src/com/android/stk/StkAppService.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java index 5104ff8..99edae3 100755 --- a/src/com/android/stk/StkAppService.java +++ b/src/com/android/stk/StkAppService.java @@ -755,6 +755,7 @@ public class StkAppService extends Service implements Runnable { case SEND_USSD: case SET_UP_IDLE_MODE_TEXT: case SET_UP_MENU: + case REFRESH: case CLOSE_CHANNEL: case RECEIVE_DATA: case SEND_DATA: @@ -970,6 +971,16 @@ public class StkAppService extends Service implements Runnable { //a menu selection. mStkContext[slotId].mCurrentCmd = mStkContext[slotId].mMainCmd; break; + case REFRESH: + waitForUsersResponse = false; + launchEventMessage(slotId); + // Idle mode text needs to be cleared for init or reset modes of refresh + if (cmdMsg.isRefreshResetOrInit()) { + mNotificationManager.cancel(STK_NOTIFICATION_ID); + mStkContext[slotId].mIdleModeTextCmd = null; + CatLog.d(this, "Clean idle mode text due to refresh"); + } + break; case LAUNCH_BROWSER: mStkContext[slotId].mBrowserSettings = mStkContext[slotId].mCurrentCmd.getBrowserSettings(); |