修复应用快捷菜单响应
This commit is contained in:
@@ -29,6 +29,7 @@ public class ShortcutActionActivity extends Activity {
|
|||||||
* 处理应用图标快捷菜单的请求
|
* 处理应用图标快捷菜单的请求
|
||||||
*/
|
*/
|
||||||
private void handleSwitchRequest() {
|
private void handleSwitchRequest() {
|
||||||
|
//ToastUtils.show("handleSwitchRequest");
|
||||||
Intent intent = getIntent();
|
Intent intent = getIntent();
|
||||||
if (intent != null && "switchto_en1".equals(intent.getDataString())) {
|
if (intent != null && "switchto_en1".equals(intent.getDataString())) {
|
||||||
APPPlusUtils.switchAppLauncherToComponent(this, App.COMPONENT_EN1);
|
APPPlusUtils.switchAppLauncherToComponent(this, App.COMPONENT_EN1);
|
||||||
|
|||||||
@@ -9,9 +9,9 @@
|
|||||||
android:shortcutLongLabel="@string/switchto_en1"
|
android:shortcutLongLabel="@string/switchto_en1"
|
||||||
android:shortcutDisabledMessage="@string/en1_switch_disabled">
|
android:shortcutDisabledMessage="@string/en1_switch_disabled">
|
||||||
<intent
|
<intent
|
||||||
android:action="cc.winboll.studio.powerbell.App.ACTION_SWITCHTO_EN1"
|
android:action="cc.winboll.studio.winboll.App.ACTION_SWITCHTO_EN1"
|
||||||
android:targetPackage="cc.winboll.studio.powerbell"
|
android:targetPackage="cc.winboll.studio.winboll"
|
||||||
android:targetClass="cc.winboll.studio.powerbell.activities.ShortcutActionActivity"
|
android:targetClass="cc.winboll.studio.winboll.activities.ShortcutActionActivity"
|
||||||
android:data="switchto_en1" />
|
android:data="switchto_en1" />
|
||||||
<categories android:name="android.shortcut.conversation" />
|
<categories android:name="android.shortcut.conversation" />
|
||||||
</shortcut>-->
|
</shortcut>-->
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
android:shortcutLongLabel="@string/switchto_cn1"
|
android:shortcutLongLabel="@string/switchto_cn1"
|
||||||
android:shortcutDisabledMessage="@string/cn1_switch_disabled">
|
android:shortcutDisabledMessage="@string/cn1_switch_disabled">
|
||||||
<intent
|
<intent
|
||||||
android:action="cc.winboll.studio.powerbell.App.ACTION_SWITCHTO_CN1"
|
android:action="cc.winboll.studio.winboll.App.ACTION_SWITCHTO_CN1"
|
||||||
android:targetPackage="cc.winboll.studio.powerbell"
|
android:targetPackage="cc.winboll.studio.winboll"
|
||||||
android:targetClass="cc.winboll.studio.powerbell.activities.ShortcutActionActivity"
|
android:targetClass="cc.winboll.studio.winboll.activities.ShortcutActionActivity"
|
||||||
android:data="switchto_cn1" />
|
android:data="switchto_cn1" />
|
||||||
<categories android:name="android.shortcut.conversation" />
|
<categories android:name="android.shortcut.conversation" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
@@ -37,9 +37,9 @@
|
|||||||
android:shortcutLongLabel="@string/switchto_cn2"
|
android:shortcutLongLabel="@string/switchto_cn2"
|
||||||
android:shortcutDisabledMessage="@string/cn2_switch_disabled">
|
android:shortcutDisabledMessage="@string/cn2_switch_disabled">
|
||||||
<intent
|
<intent
|
||||||
android:action="cc.winboll.studio.powerbell.App.ACTION_SWITCHTO_CN2"
|
android:action="cc.winboll.studio.winboll.App.ACTION_SWITCHTO_CN2"
|
||||||
android:targetPackage="cc.winboll.studio.powerbell"
|
android:targetPackage="cc.winboll.studio.winboll"
|
||||||
android:targetClass="cc.winboll.studio.powerbell.activities.ShortcutActionActivity"
|
android:targetClass="cc.winboll.studio.winboll.activities.ShortcutActionActivity"
|
||||||
android:data="switchto_cn2" />
|
android:data="switchto_cn2" />
|
||||||
<categories android:name="android.shortcut.conversation" />
|
<categories android:name="android.shortcut.conversation" />
|
||||||
</shortcut>
|
</shortcut>
|
||||||
|
|||||||
Reference in New Issue
Block a user