summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiaki Naka <yoshiaki.naka@sony.com>2019-05-09 15:35:21 +0900
committerYoshiaki Naka <yoshiaki.naka@sony.com>2021-04-30 01:56:23 +0000
commit2d10bbb2f0a4e6c8e51e1ef2f3405e0f7b0e42bf (patch)
tree991adf9c7ad2526f62cbb6edd98eaa841c85146c
parent58e076505425bfce5455dd36824b598ee8f36329 (diff)
downloadStk-2d10bbb2f0a4e6c8e51e1ef2f3405e0f7b0e42bf.tar.gz
Remove SIM Tookit from the launcher screen if no main menu is available
SIM Toolkit has a logic to remove itself from the launcher screen once it becomes unnecessary, but the condition is wrong. It is removed when all the SIM cards go into ABSENT state in the current implementation, but it must be executed when the number of active main menu becomes 0. Bug: 159662728 Test: Manually confirmed all the possible SIM removal scenarios. Change-Id: I8091bf6ea82df873335cce3477a6c759735ed79b
-rw-r--r--src/com/android/stk/StkAppService.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index e86c138..c507171 100644
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -727,12 +727,12 @@ public class StkAppService extends Service implements Runnable {
== AppInterface.CommandType.PLAY_TONE.value()) {
terminateTone(slotId);
}
+ if (!uninstallIfUnnecessary()) {
+ addToMenuSystemOrUpdateLabel();
+ }
if (isAllOtherCardsAbsent(slotId)) {
CatLog.d(LOG_TAG, "All CARDs are ABSENT");
- StkAppInstaller.uninstall(StkAppService.this);
stopSelf();
- } else {
- addToMenuSystemOrUpdateLabel();
}
} else {
IccRefreshResponse state = new IccRefreshResponse();