diff options
author | Yoshiaki Naka <yoshiaki.naka@sony.com> | 2019-10-31 10:44:07 +0900 |
---|---|---|
committer | Jack Yu <jackyu@google.com> | 2019-11-05 21:26:16 +0000 |
commit | 8b960fbbd9ca27ba73ca1a960cd0bb5339c70c87 (patch) | |
tree | 5e1c94b10f18096a129499b7ef0e8d40e5315f75 /src/com/android/stk/StkLauncherActivity.java | |
parent | 3a980db1e095d93fadf1fc9f136c0f4d88f4a28e (diff) | |
download | Stk-8b960fbbd9ca27ba73ca1a960cd0bb5339c70c87.tar.gz |
Remove PhoneConstants.SIM_ID_1
It is not recommended to use PhoneConstants.SIM_ID_1 as it is @hide API.
Bug: 130142364
Test: Manually checked the basic behaviors.
Change-Id: I8bb4c54e4625594619d04b8806c9585574d9b06d
Diffstat (limited to 'src/com/android/stk/StkLauncherActivity.java')
-rw-r--r-- | src/com/android/stk/StkLauncherActivity.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/stk/StkLauncherActivity.java b/src/com/android/stk/StkLauncherActivity.java index a2dbdcd..f1100b2 100644 --- a/src/com/android/stk/StkLauncherActivity.java +++ b/src/com/android/stk/StkLauncherActivity.java @@ -94,7 +94,7 @@ public class StkLauncherActivity extends ListActivity { return; } CatLog.d(LOG_TAG, "launch stk menu id: " + item.id); - if (item.id >= PhoneConstants.SIM_ID_1 && item.id < simCount) { + if (item.id >= 0 && item.id < simCount) { mAcceptUsersInput = false; launchSTKMainMenu(item.id); } @@ -220,8 +220,7 @@ public class StkLauncherActivity extends ListActivity { Bundle args = new Bundle(); CatLog.d(LOG_TAG, "launchSTKMainMenu."); args.putInt(StkAppService.OPCODE, StkAppService.OP_LAUNCH_APP); - args.putInt(StkAppService.SLOT_ID - , PhoneConstants.SIM_ID_1 + slodId); + args.putInt(StkAppService.SLOT_ID, slodId); startService(new Intent(this, StkAppService.class) .putExtras(args)); } |