Add SettingsActivity to launcher shortcuts

This commit is contained in:
agnostic-apollo
2021-03-24 06:48:47 +05:00
parent d3d6731d6f
commit 2b3f681723
2 changed files with 18 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<shortcuts xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
xmlns:android="http://schemas.android.com/apk/res/android">
<!--
For shortcut.xml:
@@ -35,4 +35,16 @@
</intent>
</shortcut>
<shortcut
android:shortcutId="settings"
android:enabled="true"
android:icon="@drawable/ic_settings"
android:shortcutShortLabel="@string/action_open_settings"
tools:targetApi="n_mr1">
<intent
android:action="android.intent.action.RUN"
android:targetPackage="com.termux"
android:targetClass="com.termux.app.activities.SettingsActivity"/>
</shortcut>
</shortcuts>