LineageParts: Inject Contributors Cloud into Settings via IA
This is now possible since Google added a new category key
that suits our needs.
Change-Id: Ib7b6ccca25eeaa9582b696dfe6953698c6fa9789
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index b8a993a..468a590 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -253,6 +253,27 @@
android:resource="@string/expanded_desktop_settings_summary" />
</activity-alias>
+ <!-- Contributors Cloud (MyDeviceInfo category) -->
+ <activity-alias
+ android:name=".contributors.ContributorsCloudFragment"
+ android:label="@string/contributors_cloud_fragment_title"
+ android:targetActivity="PartsActivity">
+ <intent-filter>
+ <action android:name="com.android.settings.action.IA_SETTINGS" />
+ <action android:name="org.lineageos.lineageparts.CONTRIBUTORS_CLOUD" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
+ <meta-data
+ android:name="com.android.settings.category"
+ android:value="com.android.settings.category.ia.my_device_info" />
+ <meta-data
+ android:name="com.android.settings.order"
+ android:value="16" />
+ <meta-data
+ android:name="com.android.settings.summary"
+ android:resource="@string/summary_empty" />
+ </activity-alias>
+
<!-- Anonymous Statistics -->
<receiver android:name=".lineagestats.ReportingServiceManager"
android:enabled="true"