summaryrefslogtreecommitdiff
path: root/src/com/android
diff options
context:
space:
mode:
authorTakanori Nakano <takanori.x.nakano@sonymobile.com>2016-02-16 14:34:14 +0900
committerAmit Mahajan <amitmahajan@google.com>2016-03-24 13:36:11 -0700
commit49b12720e68890a3699e5c2deca5434c2bd583a6 (patch)
tree1b41ee6d7f87624529c033250ab8744375dd460c /src/com/android
parent744e1b69432c93e3b5d7368a3e68fb7d324d0273 (diff)
downloadStk-49b12720e68890a3699e5c2deca5434c2bd583a6.tar.gz
Specify appropriate slot ID for the secondary slot
The service handler expects that 'msg.arg2' contains the appropriate slot ID. The terminal always sends response only to the SIM card inserted to the first slot if slot ID is not specified. Bug: 27267663 Change-Id: I7df65f929ccd5c66bc4b62f87ae3049547589e01
Diffstat (limited to 'src/com/android')
-rwxr-xr-x[-rw-r--r--]src/com/android/stk/StkAppService.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/stk/StkAppService.java b/src/com/android/stk/StkAppService.java
index 0b19f9e..8512c1b 100644..100755
--- a/src/com/android/stk/StkAppService.java
+++ b/src/com/android/stk/StkAppService.java
@@ -689,9 +689,9 @@ public class StkAppService extends Service implements Runnable {
private void sendResponse(int resId, int slotId, boolean confirm) {
Message msg = mServiceHandler.obtainMessage();
msg.arg1 = OP_RESPONSE;
+ msg.arg2 = slotId;
Bundle args = new Bundle();
args.putInt(StkAppService.RES_ID, resId);
- args.putInt(SLOT_ID, slotId);
args.putBoolean(StkAppService.CONFIRMATION, confirm);
msg.obj = args;
mServiceHandler.sendMessage(msg);
@@ -1589,7 +1589,7 @@ public class StkAppService extends Service implements Runnable {
startActivity(newIntent);
}
- private void launchOpenChannelDialog(int slotId) {
+ private void launchOpenChannelDialog(final int slotId) {
TextMessage msg = mStkContext[slotId].mCurrentCmd.geTextMessage();
if (msg == null) {
CatLog.d(LOG_TAG, "msg is null, return here");
@@ -1614,6 +1614,7 @@ public class StkAppService extends Service implements Runnable {
args.putInt(CHOICE, YES);
Message message = mServiceHandler.obtainMessage();
message.arg1 = OP_RESPONSE;
+ message.arg2 = slotId;
message.obj = args;
mServiceHandler.sendMessage(message);
}
@@ -1626,6 +1627,7 @@ public class StkAppService extends Service implements Runnable {
args.putInt(CHOICE, NO);
Message message = mServiceHandler.obtainMessage();
message.arg1 = OP_RESPONSE;
+ message.arg2 = slotId;
message.obj = args;
mServiceHandler.sendMessage(message);
}