Add shortcut to ComposeActivity in debug builds

This commit is contained in:
MM20
2021-12-05 20:49:42 +01:00
parent 602e9d4714
commit 9e3e9161c1
5 changed files with 33 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mm20.launcher2.ui">
<application>
<activity android:name=".legacy.activity.LauncherActivity">
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/debug_shortcuts" />
</activity>
</application>
</manifest>
@@ -0,0 +1,13 @@
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="composeactivity"
android:enabled="true"
android:icon="@drawable/ic_experimental_feature"
android:shortcutShortLabel="@string/shortcut_compose_activity"
android:shortcutLongLabel="@string/shortcut_compose_activity">
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="de.mm20.launcher2.debug"
android:targetClass="de.mm20.launcher2.ui.activity.ComposeActivity" />
</shortcut>
</shortcuts>