Add android connection shortcut

This commit is contained in:
problematicconsumer
2023-09-09 20:51:02 +03:30
parent 08e0e7f72a
commit 4aacde2a43
6 changed files with 115 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="stop">Stop</string>
<string name="quick_toggle">Toggle</string>
</resources>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:icon="@mipmap/ic_launcher"
android:shortcutId="toggle"
android:shortcutLongLabel="@string/quick_toggle"
android:shortcutShortLabel="@string/quick_toggle">
<intent
android:action="android.intent.action.MAIN"
android:targetClass="com.hiddify.hiddify.ShortcutActivity"
android:targetPackage="app.hiddify.com" />
</shortcut>
</shortcuts>