Skip to content

Commit d8492a9

Browse files
authored
Merge pull request #365 from alabiaga/main
Add category to quick tiles sample
2 parents d103fd9 + ac3e207 commit d8492a9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

samples/user-interface/quicksettings/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626

2727
defaultConfig {
2828
minSdk = 21
29-
targetSdk = 35
29+
targetSdk = 36
3030
}
3131
kotlinOptions {
3232
jvmTarget = "1.8"

samples/user-interface/quicksettings/src/main/AndroidManifest.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<intent-filter>
3434
<action android:name="android.service.quicksettings.action.QS_TILE" />
3535
</intent-filter>
36-
3736
<!--
3837
This tile listens and keeps track of its state when the app calls
3938
[TileService.requestListeningState].
@@ -47,6 +46,14 @@
4746
<meta-data
4847
android:name="android.service.quicksettings.TOGGLEABLE_TILE"
4948
android:value="true" />
49+
<!--
50+
Categorize this tile as a Utility so that it's organized in that category in
51+
Quick Settings edit. Available in Android 16 QPR 2
52+
Build.VERSION_CODES_FULL.BAKLAVA_1
53+
-->
54+
<meta-data
55+
android:name="android.service.quicksettings.TILE_CATEGORY"
56+
android:value="android.service.quicksettings.CATEGORY_UTILITIES" />
5057
</service>
5158

5259
</application>

0 commit comments

Comments
 (0)