summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com/android/stk/StkAppService.java11
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();