Add intent to import theme files directly

This commit is contained in:
MM20
2023-10-02 19:46:45 +02:00
parent e516848f4f
commit e83a6e8a31
7 changed files with 462 additions and 4 deletions

View File

@@ -25,7 +25,8 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data android:name="android.app.shortcuts"
<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
</activity>
@@ -62,9 +63,27 @@
android:value="de.mm20.launcher2.ui.launcher.SharedLauncherActivity" />
</activity>
<activity android:name=".launcher.sheets.BindAndConfigureAppWidgetActivity" />
<activity
android:name=".launcher.sheets.BindAndConfigureAppWidgetActivity"
/>
android:name=".launcher.ImportThemeActivity"
android:excludeFromRecents="true"
android:exported="true"
android:theme="@style/DialogTheme">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/vnd.de.mm20.launcher2.theme" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="*"
android:mimeType="*/*"
android:pathSuffix="kvtheme" />
</intent-filter>
</activity>
</application>
</manifest>