summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUmashankar Godachi <umasha@codeaurora.org>2016-03-30 19:41:31 +0530
committerSteve Kondik <steve@cyngn.com>2016-07-01 05:16:54 -0700
commite1ec2ccfc756bfb9b68fd6c31e32ae6b9b157bb1 (patch)
tree3a4914e9ab71687b852c5dec438267ff9b6fb678
parentdec74008a61e571cb9c4aaabdc7b66b1d886515f (diff)
downloadandroid_packages_apps_Stk-e1ec2ccfc756bfb9b68fd6c31e32ae6b9b157bb1.tar.gz
android_packages_apps_Stk-e1ec2ccfc756bfb9b68fd6c31e32ae6b9b157bb1.tar.bz2
android_packages_apps_Stk-e1ec2ccfc756bfb9b68fd6c31e32ae6b9b157bb1.zip
Fix the notification cancel during SIM refresh.
During SIM refresh, the idle mode text needs to be cleared, currently it is always cleared for default subscription irrespective of the slot on which the refresh is received. Fix: In StkAppService, while handling the refresh get the notification id for the respective slot and do the cancel. Change-Id: I861656188842809fb248d94710f6407f210829c9 CRs-Fixed: 988831
-rwxr-xr-xsrc/com/android/stk/StkAppService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 6856d6c..6e2e872 100755
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -994,7 +994,7 @@ public class StkAppService extends Service implements Runnable {
launchEventMessage(slotId);
// Idle mode text needs to be cleared for init or reset modes of refresh
if (cmdMsg.isRefreshResetOrInit()) {
- mNotificationManager.cancel(STK_NOTIFICATION_ID);
+ mNotificationManager.cancel(getNotificationId(slotId));
mStkContext[slotId].mIdleModeTextCmd = null;
CatLog.d(this, "Clean idle mode text due to refresh");
}