Create settings.md

This commit is contained in:
MM2-0 2024-02-21 12:15:44 +01:00 committed by GitHub
parent a08c866615
commit 217a181866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,17 @@
# Plugin Settings
To add a plugin settings activity, create an activity with the following intent filter:
```xml
<activity
android:name=".SettingsActivity"
android:exported="true">
<intent-filter>
<action android:name="de.mm20.launcher2.action.PLUGIN_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
```
Users can launch this activity by pressing the <span class="material-symbols-rounded">settings</span> on the plugin settings screen.