Profiles: Bring-up and inject into Settings via IA
* Make use of the new information architecture for the Settings app
and place the status bar settings into System category.
* Set intent priority to a value between those that Google uses for
"Languages & input" and "Date & time" entried in order to place our
preference in between those two.
* Use empty summary so that the title is centered vertically,
matching "Developer options" and "Reset" entries.
Change-Id: I732d51ef81df7af0ce2488cb935592d2d1f52cf5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 86c3871..19d4a38 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -161,31 +161,24 @@
<activity android:name=".gestures.KeyHandler" />
-->
- <!-- Profiles settings (dashboard) -->
- <!--
+ <!-- Profiles settings (System category) -->
<activity-alias
android:name=".profiles.ProfilesSettings"
android:label="@string/profiles_settings_title"
+ android:icon="@drawable/ic_settings_profiles"
android:targetActivity="PartsActivity">
- <intent-filter android:priority="1">
- <action android:name="com.android.settings.action.EXTRA_SETTINGS" />
+ <intent-filter android:priority="255">
+ <action android:name="org.lineageos.lineageparts.action.SETTINGS" />
<action android:name="org.lineageos.lineageparts.PROFILES_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<meta-data
android:name="com.android.settings.category"
- android:value="com.android.settings.category.personal" />
+ android:value="com.android.settings.category.ia.system" />
<meta-data
- android:name="com.android.settings.icon"
- android:resource="@drawable/ic_settings_profiles" />
- <meta-data
- android:name="org.lineageos.settings.summary.receiver"
- android:value="org.lineageos.lineageparts.PartsUpdater" />
- <meta-data
- android:name="org.lineageos.settings.summary.key"
- android:value="profiles_settings" />
+ android:name="com.android.settings.summary"
+ android:resource="@string/summary_empty" />
</activity-alias>
- -->
<!-- Status bar settings (dashboard) -->
<!--
@@ -253,7 +246,6 @@
</activity-alias>
-->
- <!--
<activity android:name=".profiles.NFCProfile">
<intent-filter>
<action android:name="android.nfc.action.NDEF_DISCOVERED"/>
@@ -261,14 +253,11 @@
<data android:mimeType="cm/profile" />
</intent-filter>
</activity>
- -->
- <!--
<activity
android:name=".profiles.NFCProfileSelect"
android:label="@string/profile_select"
android:excludeFromRecents="true"/>
- -->
</application>
</manifest>