Add assistant activity shortcut

Close #322
This commit is contained in:
MM20 2023-05-13 19:04:35 +02:00
parent 6e5cfb2737
commit 7ebc662c6f
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
6 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:enabled="true"
android:icon="@mipmap/ic_launcher"
android:shortcutId="compose"
android:shortcutLongLabel="@string/search_bar_placeholder"
android:shortcutShortLabel="@string/search_bar_placeholder">
<intent
android:action="android.intent.action.ASSIST"
android:targetClass="de.mm20.launcher2.ui.assistant.AssistantActivity"
android:targetPackage="de.mm20.launcher2.debug" />
</shortcut>
</shortcuts>

View File

@ -24,6 +24,10 @@
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
<activity

View File

@ -1,2 +0,0 @@
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
</shortcuts>

View File

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts>
</shortcuts>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:enabled="true"
android:icon="@mipmap/ic_launcher"
android:shortcutId="compose"
android:shortcutLongLabel="@string/search_bar_placeholder"
android:shortcutShortLabel="@string/search_bar_placeholder">
<intent
android:action="android.intent.action.ASSIST"
android:targetClass="de.mm20.launcher2.ui.assistant.AssistantActivity"
android:targetPackage="de.mm20.launcher2.nightly" />
</shortcut>
</shortcuts>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:enabled="true"
android:icon="@mipmap/ic_launcher"
android:shortcutId="compose"
android:shortcutLongLabel="@string/search_bar_placeholder"
android:shortcutShortLabel="@string/search_bar_placeholder">
<intent
android:action="android.intent.action.ASSIST"
android:targetClass="de.mm20.launcher2.ui.assistant.AssistantActivity"
android:targetPackage="de.mm20.launcher2.release" />
</shortcut>
</shortcuts>