Commit 8ed71d17 authored by Mygod's avatar Mygod

Add quick switch to shortcuts

parent ffdb6f84
...@@ -109,6 +109,7 @@ ...@@ -109,6 +109,7 @@
</activity> </activity>
<activity android:name=".ShadowsocksQuickSwitchActivity" <activity android:name=".ShadowsocksQuickSwitchActivity"
android:label="@string/quick_switch"
android:launchMode="singleInstance" android:launchMode="singleInstance"
android:excludeFromRecents="true" android:excludeFromRecents="true"
android:taskAffinity="" android:taskAffinity=""
......
...@@ -9,4 +9,13 @@ ...@@ -9,4 +9,13 @@
android:targetPackage="com.github.shadowsocks" android:targetPackage="com.github.shadowsocks"
android:targetClass="com.github.shadowsocks.QuickToggleShortcut" /> android:targetClass="com.github.shadowsocks.QuickToggleShortcut" />
</shortcut> </shortcut>
<shortcut android:shortcutId="switch"
android:enabled="true"
android:icon="@mipmap/ic_launcher"
android:shortcutShortLabel="@string/quick_switch"
android:shortcutLongLabel="@string/quick_switch">
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.github.shadowsocks"
android:targetClass="com.github.shadowsocks.ShadowsocksQuickSwitchActivity" />
</shortcut>
</shortcuts> </shortcuts>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment