Move debug_shortcuts meta to main AndroidManifest

This commit is contained in:
MM20 2021-12-06 21:48:41 +01:00
parent 2edc96bc84
commit 95e06762da
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
4 changed files with 7 additions and 28 deletions

View File

@ -1,15 +0,0 @@
<?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>

View File

@ -1,13 +0,0 @@
<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>

View File

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

View File

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