diff options
author | Legler Wu <legler.wu@mediatek.com> | 2015-01-17 00:24:13 +0800 |
---|---|---|
committer | Amit Mahajan <amitmahajan@google.com> | 2015-01-16 15:21:35 -0800 |
commit | c32560e69a3dc13ad96287629271002c6d02c9f9 (patch) | |
tree | 834852ab9e071b4fda0f753717b449d1cf86368e /src/com/android | |
parent | 8bf95af0202e8a9b475ab1a75fd7f7a13cd0262b (diff) | |
download | Stk-c32560e69a3dc13ad96287629271002c6d02c9f9.tar.gz |
[DS] SIM Toolkit icon should not be shown if SIM don't support SIM Toolkit
1. Set StkMainActivity as default disabled
2. Only set StkMainActivity as enabled when receiving Setup menu from
the SIM
Bug: 18999216
Change-Id: I1b1233f478b67d008c042690e542e2d6158e34f1
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/stk/StkAppInstaller.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/stk/StkAppInstaller.java b/src/com/android/stk/StkAppInstaller.java index 3208ba8..2d06e59 100644 --- a/src/com/android/stk/StkAppInstaller.java +++ b/src/com/android/stk/StkAppInstaller.java @@ -31,7 +31,7 @@ import android.os.SystemProperties; * */ abstract class StkAppInstaller { - private static final String STK_LAUNCHER_ACTIVITY = "com.android.stk.StkLauncherActivity"; + private static final String STK_MAIN_ACTIVITY = "com.android.stk.StkMain"; private static final String LOG_TAG = "StkAppInstaller"; private StkAppInstaller() { @@ -57,7 +57,7 @@ abstract class StkAppInstaller { CatLog.d(LOG_TAG, "[setAppState]- no package manager, just return."); return; } - ComponentName cName = new ComponentName("com.android.stk", STK_LAUNCHER_ACTIVITY); + ComponentName cName = new ComponentName("com.android.stk", STK_MAIN_ACTIVITY); int state = install ? PackageManager.COMPONENT_ENABLED_STATE_ENABLED : PackageManager.COMPONENT_ENABLED_STATE_DISABLED; |